Closed hobovsky closed 1 year ago
Present how to use custom stringizers to prevent confusing assertion messages when working with double values:
double
#include <sstream> #include <iomanip> namespace snowhouse { template<> struct Stringizer<double> { static std::string ToString(double value) { std::ostringstream oss; oss << std::setprecision(15) << value; return oss.str(); } }; }
Present how to use custom stringizers to prevent confusing assertion messages when working with
double
values: