This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] missing template argument in __weak_ptr::lock


On 10/09/2007, I wrote:
>
> __weak_ptr<Tp, Lp>::lock() cannot be instantiated when Lp !=
> __default_lock_policy, as shown by the second of these new tests. The
> other test is to ensure something similar doesn't happen with
> __shared_ptr.

fix now also applied to the 4.2 branch.
tested x86_64/linux

ChangeLog adjusted for slightly different testsuite layout:

2007-10-14  Jonathan Wakely  <...>

        * include/tr1_impl/boost_shared_ptr.h: (__weak_ptr::lock()): Add
        missing template argument.
        * testsuite/tr1/2_general_utilities/memory/shared_ptr/
        explicit_instantiation/2.cc: New.
        * testsuite/tr1/2_general_utilities/memory/weak_ptr/
        explicit_instantiation/2.cc: New.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]