[assign] syntax for creating an initially empty list --- request for feedback

14 Aug
2008
14 Aug
'08
9:05 p.m.
Dear all, A user of boost.assign was doing the following: array<bool, N> temp = list_of<bool>().repeat(N, true); The problem in this context is that that list_of<T>() inserts a default constructed element, and that there is no way to avoid that. I proposed that we use the following syntax: boost::assign::list_of(boost::none) to say that the initial list is empty. Comments? -Thorsten
6149
Age (days ago)
6149
Last active (days ago)
0 comments
1 participants
participants (1)
-
Thorsten Ottosen