Re: [boost] [Boost-users] [mini-review] Update of Boost.Assign (13th-19th of June)

14 Jun
2010
14 Jun
'10
2:43 p.m.
On 14 Jun 2010, at 14:57, er wrote:
Christopher, thanks for inquiring.
and: make<std::vector>(1,2,3,4,5); // Makes a std::vector<int> containing 1,2,3,4,5 make_list(1,2,3,4,5); // Makes a list which can be assigned to any standard container, filling it with 1,2,3,4,5.
Something similar is already possible before the proposed extension e.g.
list_of(1)(2)(3)(4)(5).convert_to_container<std::vector<int> >(); std::vector<int> vec = list_of(1)(2)(3)(4)(5);
Certainly this doesn't add anything new. Personally I prefer the look of (1,2,3,4,5) over (1)(2)(3)(4)(5), now that the core language supports it efficiently. Chris
5478
Age (days ago)
5478
Last active (days ago)
0 comments
1 participants
participants (1)
-
Christopher Jefferson