This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [v3] Add constexpr specifiers to std::shared_ptr, std::unique_ptr, etc
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: Jonathan Wakely <jwakely dot gcc at gmail dot com>, libstdc++ <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 09 Nov 2010 17:26:43 +0100
- Subject: Re: [v3] Add constexpr specifiers to std::shared_ptr, std::unique_ptr, etc
- References: <4CD49DCD.5070709@oracle.com> <AANLkTim+sCOAfMXk2WK0e9WM849JdpSp+cMVL5c-+ER-@mail.gmail.com> <BA1C1D8E-3279-4DA6-9A40-C6C9640BE3A8@oracle.com> <AANLkTi=knnAU8veQYMOVbsGpRLXvhnR=5xk7ZTAsWamL@mail.gmail.com> <E787158A-49D8-4A58-B38E-E01028B80054@gmail.com> <AANLkTimWAMa20P_9ZGJ01N7j-CszQqeP79WKtV-FS9W5@mail.gmail.com> <20101109102246.1909791e@shotwell>
On 11/09/2010 05:22 PM, Benjamin Kosnik wrote:
>> I've also changed the constexpr constructors to value-initialize the
>> tuple member, because only tuple's default constructor is constexpr.
>>
> Thanks. I was concerned when the first change was incorrect by
> inspection, and tests were removed....
>
To be clear: those tests were obviously incorrect, because unique_ptr
and shared_ptr are not literal types.
Paolo.