diff --git a/include/internal/catch_tostring.hpp b/include/internal/catch_tostring.hpp index f4b044fe..634f45ab 100644 --- a/include/internal/catch_tostring.hpp +++ b/include/internal/catch_tostring.hpp @@ -96,6 +96,11 @@ struct StringMaker { } }; +template +std::string toString( T const& value ) { + return StringMaker::convert( value ); +} + template struct StringMaker > { static std::string convert( std::vector const& v ) { @@ -125,10 +130,7 @@ namespace Detail { /// that and writes {?}. /// Overload (not specialise) this template for custom typs that you don't want /// to provide an ostream overload for. -template -std::string toString( T const& value ) { - return StringMaker::convert( value ); -} + // Built in overloads