Boost logo

Boost Users :

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.


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