I want to boost::assign a list to an empty value.
Something like:
using namespace boost::assign;
std::list<int> myList = list_of<int>();
The reason that I want to do that is that I have a map of lists that I want to initialise and one of the lists in the map is empty.
So I actually want to:
std::map<int, std::list<int> > myMap =
(map_list_of(0, list_of<int>())
(1, list_of<int>(1)(2))
(3, list_of<int>(99));
Use
std::list<int>()instead oflist_of<int>():