P
Philipp Kraus
Hi,
I try to sort a std::map on their values. My code:
std::map<std::string, std::size_t> y;
add some data to y and sorting with
std::sort(y.begin(), y.end(), y.value_comp());
I get an error "no match for operator+ in __first+1" in the stl_algo.h
I would like to read my map in a sorted (descnding) order based on the
values. How I can do this in the right way?
Thanks
Phil
I try to sort a std::map on their values. My code:
std::map<std::string, std::size_t> y;
add some data to y and sorting with
std::sort(y.begin(), y.end(), y.value_comp());
I get an error "no match for operator+ in __first+1" in the stl_algo.h
I would like to read my map in a sorted (descnding) order based on the
values. How I can do this in the right way?
Thanks
Phil