Question 1.
std::vector<Roles> vr;
the constructor for Roles:
enum Role { .....};
explicit Roles (const std::string& usr, const Role& r);
How would I use boost::assign::list_of to assign a vector of Roles instead
of doing regular vector push_back.
Question 2.
Related.
I have a Hash map i.e. boost::unordered_map
and i want to use boost::map_list_of how would i do that.
Question 3.
trying to use operator += in boost::assignment i get error specifying
unknown types.
typedef boost::function sortfunc;
std::vector<sortfunc> function_list;
// quicksort random
function_list += (&quicksort)
// quicksort median
(&quicksort) // error here.
// quicksort mediantriple
(&quicksort)
// merge sort
(&mergesort)
// heap sort
(&heapsort)
// selection sort
(&selection_sort)
// standard sort
(&standard_sort);
Thanks for any help in advanced.