Trim String Characters With Boost Lambda

#include <boost/algorithm/string.hpp>

wstring s = L"\"quoted\"";

                          [](auto& ch) { return ch == L'\"'; });

produces output quoted.

The beauty here is using C++11 lambdas with boost algorithms instead of static methods or function objects making syntax super short.

Thanks! You can always email me or use contact form for more questions/comments etc.