Boost logo

Boost :

Subject: Re: [boost] [array] assignment and constructor coherency
From: Vicente Botet (vicente.botet_at_[hidden])
Date: 2011-06-18 02:59:11


Nevin Liber wrote:
>
> On 17 June 2011 12:03, Vicente Botet <vicente.botet_at_[hidden]>
> wrote:
>
>> Boost.Array defines the following assignment
>>
>> template (* typename U *)
>> array(* T,N *)& operator=(const array(* U, N *)&);
>>
>
>
>> Even if the standard doesn't provides this conversion assignment, for
>> coherency purposes, shouldn't we have also the copy constructor
>>
>> template (* typename U *)
>> explicit array(* T,N *)(const array(* U, N *)&);
>>
>
> The existence of any user defined constructor destroys PODness.
>
>

Oh, I didn't thought to that. This is a sufficient reason.

Thanks a lot,
Vicente

--
View this message in context: http://boost.2283326.n4.nabble.com/array-assignment-and-constructor-coherency-tp3605912p3607367.html
Sent from the Boost - Dev mailing list archive at Nabble.com.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk