24 Jul
2006
24 Jul
'06
3:15 p.m.
Johan RĂ¥de 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?
boost::array has a templatized assignment operator, so it is clearly intended to be assignable.
All I need is an ordinary non-templatized assignment operator as well, and then my code compiles with VC++ 7.1.
So it does! I hadn't realised there was a template assignment operator. In that case it's a really weird error, and I don't see the harm in the fix, especially if it's VC7.1 specific. John.