$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: John Maddock (john_at_[hidden])
Date: 2006-07-24 11:13:02
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.
John.