| 848 | // This function dispatches all stringification requests inside of Catch. |
| 849 | // Should be preferably called fully qualified, like ::Catch::Detail::stringify |
| 850 | template <typename T> std::string stringify(const T &e) { |
| 851 | return ::Catch::StringMaker<typename std::remove_cv<typename std::remove_reference<T>::type>::type>::convert(e); |
| 852 | } |
| 853 | |
| 854 | template <typename E> std::string convertUnknownEnumToString(E e) { |
| 855 | return ::Catch::Detail::stringify(static_cast<typename std::underlying_type<E>::type>(e)); |
no test coverage detected