[v3] Add constexpr specifiers to std::shared_ptr, std::unique_ptr, etc

Paolo Carlini paolo.carlini@oracle.com
Tue Nov 9 16:42:00 GMT 2010


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.



More information about the Gcc-patches mailing list