15 #ifndef DDTEST_SRC_STR_H
16 #define DDTEST_SRC_STR_H 1
23 template <
typename T> std::string _to_string(
const T& _val) {
24 std::stringstream res;
41 STR (
float val ) : _val(val), _str(_to_string(val)) { }
42 std::string str()
const {
return _str ; }
43 float value()
const {
return _val; }
45 return this->str() == s2.str() ;
50 inline std::ostream&
operator<<(std::ostream& os ,
const STR& s) {
56 #endif // DDTEST_SRC_STR_H