I\'m currently stuck finding the correct syntax for trimming each string in a std::vector.
I tried
std::vector v; std::for_each(v.be
You need to bind as well the second parameter of trim (the locale):
std::vector v; std::for_each(v.begin(), v.end(), boost::bind(&boost::trim, _1, std::locale() ));