| 11450 | namespace Catch { |
| 11451 | template <typename T> |
| 11452 | std::string to_string(T const& t) { |
| 11453 | #if defined(CATCH_CONFIG_CPP11_TO_STRING) |
| 11454 | return std::to_string(t); |
| 11455 | #else |
| 11456 | ReusableStringStream rss; |
| 11457 | rss << t; |
| 11458 | return rss.str(); |
| 11459 | #endif |
| 11460 | } |
| 11461 | } // end namespace Catch |
| 11462 | |
| 11463 | // end catch_to_string.hpp |