
"Gennadiy Rozental" <gennadiy.rozental@thomson.com> wrote in message news:c4ifep$lpt$1@sea.gmane.org...
"Alexander Nasonov" <alnsn-mycop@yandex.ru> wrote in message news:c4hmul$uuc$1@sea.gmane.org...
I like the idea. However, I argue with some design decisions. The biggest problem is that it's too easy to add operator+= to any container-like class.
What would you prefer then?
I also believe that providing template method for global operator += is not good idea.
its not global. And you have to include the specific assign/stl.hpp header.
What you could do is to provide an operator += specialization for stl containers and support initialization in a form:
init( C ) += ...
as a generic solution.
If you looked at the lib, you would find that it is already there; it's called insert(). br Thorsten