|
|
|
@@ -218,6 +218,15 @@ namespace std |
|
|
|
std::forward<X>(x).to_string(std::declval<basic_ostream<T_char, T_traits>&>()), |
|
|
|
std::declval<basic_ostream<T_char, T_traits>&>()); |
|
|
|
|
|
|
|
/** |
|
|
|
* @brief Operator overload to write value to stream that supports the to_string method, with stream parameter. |
|
|
|
*/ |
|
|
|
template<typename T_char, typename T_traits, typename X> |
|
|
|
inline auto operator<<(basic_ostream<T_char, T_traits>& os, X&& x) |
|
|
|
-> decltype( |
|
|
|
std::forward<X>(x).to_string(), |
|
|
|
std::declval<basic_ostream<T_char, T_traits>&>()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#include "string.inl" |