24 Jul
2006
24 Jul
'06
3:12 p.m.
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?