|
Boost Users : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-07-24 11:12:29
John Maddock 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?
>
> Because if a function returns type X by value, then the function
> return statement must surely use either the copy constructor or the
> assignment operator of X?
>
> Likewise returning a C-array by value is not legal.
Sorry.
What makes you think that Boost.Array is not intended to be
copy-constructable or assignable?
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