Victor Bazarov <v.ba...@comcast.invalid> wrote:
> On 4/9/2016 10:30 PM, Stefan Ram wrote:
>> I wrote:
>>
>> auto p { ::std::make_pair( 0, 0 ) };
>>
>> for C++17. But then I remembered that I often saw:
>>
>> auto p = ::std::make_pair( 0, 0 );
>>
>> with an »equals« sign.
>>
>> So is there anything wrong with:
>>
>> auto p { ::std::make_pair( 0, 0 ) };
>>
>> ?
>
> There is nothing "wrong" with it.
Wasn't it so that the = initialization requires for the type to have a
callable copy constructor (even if the compiler never produces the call)?
Thus the two types of initialization are not completely identical.
--- news://
freenews.netfront.net/ - complaints:
ne...@netfront.net ---