
16 Jun
2010
16 Jun
'10
5:54 p.m.
Christopher Jefferson wrote:
While independant of this change, I believe Boost.Assign may be ideally suited to use variadic templates. I am already making use of a variadic push_back and container construction, like:
push_back(v,1,2,3,4);
As of now, the closest match, as you probably know, is: #include <boost/assign/list_inserter.hpp> push_back(v)(1)(2)(3)(4); With a view to promote separation of responsibility between different functions, perhaps we may (also) consider a new function : push_back_range(const V&,const R&); This would tie in with the proposed extension like this: push_back_range(v,cref_csv(1,2,3,4)); or like this: push_back_range(v, w && cref_csv(1,2,3,4) );