Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2006-07-24 11:15:51


Johan Råde wrote:
> Peter Dimov wrote:
>> John Maddock wrote:
>>
>>> Boost.Array is not intended to be either copy-constructable or
>>> assignable, so instantiating a function returning an array-by-value
>>> *should* fail to compile.
>>
>> What makes you think so?
>
> boost::array has a templatized assignment operator,
> so it is clearly intended to be assignable.
>
> All I need is an ordinary non-templatized assignment operator as well,
> and then my code compiles with VC++ 7.1.

So it does! I hadn't realised there was a template assignment operator. In
that case it's a really weird error, and I don't see the harm in the fix,
especially if it's VC7.1 specific.

John.


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