
22 Feb
2009
22 Feb
'09
9:46 p.m.
Thorsten Ottosen wrote:
Mathias Gaunard skrev:
make_range(0, 1, 2, 3) could be a range of 4 elements, being 0, 1, 2 and 3.
You mean like
boost::assign::list_of(0)(1)(2)(3)
?
I naively thought that was equivalent to std::list<int> l; l.push_back(0); l.push_back(1); l.push_back(2); l.push_back(3); but actually, this is exactly what is needed.