Fixed function signature in the code snippet

Since the 'toString' is a template function specialization, it should
have a 'template<>' statement in it's declaration.
This commit is contained in:
vosel 2016-10-24 15:08:28 +06:00
parent 88732e85b2
commit 4eb958f9b0

View File

@ -33,7 +33,7 @@ If you don't want to provide an ```operator <<``` overload, or you want to conve
``` ```
namespace Catch { namespace Catch {
std::string toString( T const& value ) { template<> std::string toString( T const& value ) {
return convertMyTypeToString( value ); return convertMyTypeToString( value );
} }
} }