cgv
Loading...
Searching...
No Matches
convert_string.cxx
1#include "convert_string.h"
2
3namespace cgv {
4 namespace utils {
5
6template <>
7std::string to_string(const std::string& v, unsigned int w, unsigned int p, bool)
8{
9 return v;
10}
11
12template <>
13bool from_string(std::string& v, const std::string& s)
14{
15 v = s;
16 return true;
17}
18
19 }
20}
Helper functions to convert numeric types into strings using std streams.
std::string to_string(const std::string &v, unsigned int w, unsigned int p, bool)
specialization of conversion from string to strings
bool from_string(std::string &v, const std::string &s)
specialization to extract string value from string
the cgv namespace
Definition print.h:11