This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [patch] missing template argument in __weak_ptr::lock
- From: "Jonathan Wakely" <jwakely dot gcc at gmail dot com>
- To: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Sun, 14 Oct 2007 18:40:48 +0100
- Subject: Re: [patch] missing template argument in __weak_ptr::lock
- References: <4348dea50709100815y43d5ca6ewf7acc2c4ad51c5f@mail.gmail.com>
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.