Boost logo

Boost :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2004-04-01 20:25:46

"Thorsten Ottosen" <nesotto_at_[hidden]> wrote in message
> Hi Alexander,
> "Alexander Nasonov" <alnsn-mycop_at_[hidden]> wrote in message
> news:c4hmul$uuc$
> > 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.

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.


Boost list run by bdawes at, gregod at, cpdaniel at, john at