5 namespace DataStream_impl {
34 throw std::runtime_error(std::string(
"No viable conversion to type 'char' from double ") +
std::to_string(a) +
"\n");
63 std::transform(a.begin(), a.end(), a.begin(), tolower);
69 throw std::runtime_error(
"No viable convertion to type 'bool' from string '" + a +
"\n");
78 throw std::runtime_error(
"No viable convertion to type 'bool' from char '" + std::string(1, a) +
"\n");
95 return std::string(1, a);
bool almost_zero(const T &val, double tol=TOL)
If T is not integral, use std::abs(val) < tol;.
std::string to_string(ENUM val)
Return string representation of enum class.