diff options
| author | Martin Hořeňovský | 2021-05-18 00:02:46 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-05-18 23:15:22 +0200 |
| commit | 9137e591fa7d7fee2e8c1d3bfeb55068deb2c665 (patch) | |
| tree | 983f925118ed17cffc9cc35d553bf9dae2814a11 /tests/SelfTest/UsageTests/Approx.tests.cpp | |
| parent | f50a06affa77d4dbe0c94f684b3a6dfae04c2ebe (diff) | |
| download | catch3-9137e591fa7d7fee2e8c1d3bfeb55068deb2c665.tar.gz | |
Cleanup and optimize stringifying of string-like types
More specifically, made the actual implementation of string-like
type handling take argument as `Catch::StringRef`, instead of
taking `std::string const&`.
This means that string-like types that are not `std::string` no
longer need to pay for an extra construction of `std::string`
(including the potential allocation), before they can be stringified.
The actual string stringification routine is now also better about
reserving sufficient space.
Diffstat (limited to 'tests/SelfTest/UsageTests/Approx.tests.cpp')
0 files changed, 0 insertions, 0 deletions