From 4eb958f9b05d2f6c8c54490f3a43682f87368efb Mon Sep 17 00:00:00 2001 From: vosel Date: Mon, 24 Oct 2016 15:08:28 +0600 Subject: [PATCH] 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. --- docs/tostring.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tostring.md b/docs/tostring.md index dbb6cb8d..409a4ee7 100644 --- a/docs/tostring.md +++ b/docs/tostring.md @@ -33,7 +33,7 @@ If you don't want to provide an ```operator <<``` overload, or you want to conve ``` namespace Catch { - std::string toString( T const& value ) { + template<> std::string toString( T const& value ) { return convertMyTypeToString( value ); } }