mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-17 11:12:25 +01:00
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:
parent
88732e85b2
commit
4eb958f9b0
@ -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 );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user