#include <boost/algorithm/string.hpp> #include <iostream> using namespace std; int main() { string s = "hello, world!"; boost::to_upper(s); cout << s << endl; // "HELLO, WORLD!" return 0; }