Created on 2009-10-22.00:00:00 last changed 171 months ago
Proposed resolution:
Add to [valarray.cassign]:
valarray<T>& operator+= (initializer_list<T>);
[ 2009-10 Santa Cruz: ]
Mark as NAD. Request has been withdrawn by NB.
[ Daniel adds on opening: ]
Recommend NAD. The operator+= overload of basic_string behaves as-if calling append, which is completely different in meaning as the existing operator+= overloads in valarray which just sum the value or values to the existing elements. The suggestion to add a corresponding append function to valarray was not considered as appropriate and the request was withdrawn (c++std-lib-24968).
Addresses JP 64
During the additions of initializer_list overloads basic_string added:
basic_string& operator+=(initializer_list<charT>);
but
valarray<T>& operator+= (initializer_list<T>);
was not defined.
History | |||
---|---|---|---|
Date | User | Action | Args |
2010-10-21 18:28:33 | admin | set | messages: + msg1283 |
2010-10-21 18:28:33 | admin | set | messages: + msg1282 |
2010-10-21 18:28:33 | admin | set | messages: + msg1281 |
2009-10-22 00:00:00 | admin | create |