added cpp to another code block in docs

This commit is contained in:
Phil nash 2019-04-27 18:51:26 +01:00
parent 87a9424c9d
commit 33ce3f3953

View File

@ -15,7 +15,7 @@ Most built-in or std types are supported out of the box but there are two ways t
This is the standard way of providing string conversions in C++ - and the chances are you may already provide this for your own purposes. If you're not familiar with this idiom it involves writing a free function of the form: This is the standard way of providing string conversions in C++ - and the chances are you may already provide this for your own purposes. If you're not familiar with this idiom it involves writing a free function of the form:
``` ```cpp
std::ostream& operator << ( std::ostream& os, T const& value ) { std::ostream& operator << ( std::ostream& os, T const& value ) {
os << convertMyTypeToString( value ); os << convertMyTypeToString( value );
return os; return os;