[patch] missing template argument in __weak_ptr::lock

Jonathan Wakely jwakely.gcc@gmail.com
Sun Oct 14 17:40:00 GMT 2007

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.

More information about the Libstdc++ mailing list