Boost logo

Boost Users :

From: Johan Råde (rade_at_[hidden])
Date: 2006-08-08 07:19:36


John Maddock wrote:
> Johan Råde wrote:
>> John Maddock wrote:
>>
>>> Personally I would add the template-assignment op for BOOST_MSVC <
>>> 1400 only, would we gain anything from adding it for other
>>> compilers? It opens up an assignment that wasn't there before, so I
>>> guess it means array<double,
>>>> becomes assignable to array<int, N> which may or may not be a good
>>>> idea depending on your POV.
>>> John.
>> array already has a template assignment op.
>> array<double, N> already is assignable to array<int, N>
>>
>> The question is, should we add a non-template assignment op for VC++
>> 7.1, as a compiler bug workaround.
>
> Oh, Darn. Sorry for the confusion.
>
> That one is problematic as it really would make the array a non-POD so
> initialisation would occur during the dynamic phase rather than the static
> phase. IMO that would be a deal braker :-(
>
> John.

So an array class with a non-template assignment op
is an aggregate but is not a POD.
This language sometimes drives me nuts ;-)

--Johan


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net