Boost logo

Boost :

Subject: [boost] [assignment] += for containers on right side
From: Jochen Wilhelmy (jochen.wilhelmy_at_[hidden])
Date: 2012-07-19 12:00:42


is it possible to make += also work for containers on right side?
int a;
std::vector<int> b;
std::list<int> c;
std::vector<int> d;
d += a,b,c,d;

this would be similar to strings where += at least works with one string
on the right side.


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