| 7681 | |
| 7682 | namespace Catch { |
| 7683 | template <typename T> std::string to_string(T const &t) { |
| 7684 | #if defined(CATCH_CONFIG_CPP11_TO_STRING) |
| 7685 | return std::to_string(t); |
| 7686 | #else |
| 7687 | ReusableStringStream rss; |
| 7688 | rss << t; |
| 7689 | return rss.str(); |
| 7690 | #endif |
| 7691 | } |
| 7692 | } // end namespace Catch |
| 7693 | |
| 7694 | // end catch_to_string.hpp |