
1 Apr
2004
1 Apr
'04
6:27 p.m.
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. 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; } -- Alexander Nasonov Independent Developer and Consultant