|
Boost : |
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2008-08-14 17:05:32
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk