Boost logo

Boost :

From: Alexander Nasonov (alnsn-mycop_at_[hidden])
Date: 2004-04-01 13:27:32


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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk