Maybe this is a dumb question, but is there any way to convert a boolean value to a string such that 1 turns to \"true\" and 0 turns to \"false\"? I could just use an if st
This post is old but now you can use std::to_string to convert a lot of variable as std::string.
std::to_string
std::string
http://en.cppreference.com/w/cpp/string/basic_string/to_string