
1 Apr
2004
1 Apr
'04
11:33 p.m.
Hi Alexander, "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?
For example, this program doesn't compile:
struct not_container { typedef int value_type;
template<class T> void operator+=(T) {} };
#include <boost/assign/stl.hpp> using namespace boost::assignment;
int main() { not_container v; v += 1, 3; insert(v)(1)(3); // should work }
best regards Thorsten