| 9074 | namespace Catch { |
| 9075 | template <typename T> |
| 9076 | std::string to_string(T const& t) { |
| 9077 | #if defined(CATCH_CONFIG_CPP11_TO_STRING) |
| 9078 | return std::to_string(t); |
| 9079 | #else |
| 9080 | ReusableStringStream rss; |
| 9081 | rss << t; |
| 9082 | return rss.str(); |
| 9083 | #endif |
| 9084 | } |
| 9085 | } // end namespace Catch |
| 9086 | |
| 9087 | // end catch_to_string.hpp |