6
// converts the string into the specified type, setting r to the converted
7
// value and returning true/false on success or failure
9
bool convert(const std::string& s, T& r) {
10
std::istringstream iss(s);
12
return iss.eof() ? true : false;
16
std::string convert(const T& r) {
17
std::ostringstream oss;