diff options
| author | Andy Sawyer | 2013-09-21 18:45:42 +0100 |
|---|---|---|
| committer | Andy Sawyer | 2013-09-21 18:45:42 +0100 |
| commit | d6f23a9a36cf008b870a2d7c51e422dc209d3241 (patch) | |
| tree | d2acec1f421adf69eb1a4dbef703b59e5f848118 /projects/SelfTest/ToStringTuple.cpp | |
| parent | 0dbcf218c353e801d4fa26d14696e81f6b832cad (diff) | |
| download | catch3-d6f23a9a36cf008b870a2d7c51e422dc209d3241.tar.gz | |
catch_tostring : moved defintion of rangeToString
Detail::rangeToString is now defined after the various toString
overloads. This results in them being accessible with rangeToString is
instantiated (in this case, by StringMaker<vector>). This (sort-of)
fixes the problem where contained types are toString'd incorrectly.
Consider:
std::vector<std::string> v { "abc" };
Before:
Catch::toString( v ) == "{ abc }"
After:
Catch::toString( v ) == "{ "abc" }"
(note the extra pair of quotes around the "abc" - these are added by
Catch::toString( std::string ) which is now called by rangeToString)
Diffstat (limited to 'projects/SelfTest/ToStringTuple.cpp')
0 files changed, 0 insertions, 0 deletions