7 #ifndef IGLOO_STRINGIZE_H 8 #define IGLOO_STRINGIZE_H 27 tag operator<<(std::ostream&,
any const&);
35 typedef char (&no)[2];
46 static const bool value =
sizeof(check(std::cout << x)) ==
sizeof(yes);
49 template<
typename T,
bool type_is_streamable>
52 static std::string ToString(
const T& value)
54 std::ostringstream buf;
63 static std::string ToString(
const T&)
65 return "[unsupported type]";
74 std::string Stringize(
const T& value)
83 static std::string ToString(
const T& value)
85 using namespace detail;
87 return DefaultStringizer< T, is_output_streamable<T>::value >::ToString(value);
Definition: stringize.h:15
Definition: stringize.h:50
Definition: stringize.h:24
Definition: stringize.h:71
Definition: stringize.h:43