$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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?