diff options
| author | Martin Hořeňovský | 2023-10-28 21:34:53 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2023-10-28 21:35:03 +0200 |
| commit | 6ebc013b8cfe438a3a397817ad662db34a978238 (patch) | |
| tree | 2e19e07413df1f273bd936036000107d37e59472 /src | |
| parent | 966d3615517c2502b565c25c25e22003efa1e759 (diff) | |
| download | catch3-6ebc013b8cfe438a3a397817ad662db34a978238.tar.gz | |
Fix UDL definitions for C++23
Technically, the declaration should not have a space between
the quotes and the underscore, because `_foo` is a reserved
identifier, but `""_foo` is not. In general it works, but newer
Clang versions warn about this, because WG21 wants to deprecate
and later remove this form completely.
Diffstat (limited to 'src')
| -rw-r--r-- | src/catch2/catch_approx.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/catch2/catch_approx.cpp b/src/catch2/catch_approx.cpp index 407586d1..9ad4ce3e 100644 --- a/src/catch2/catch_approx.cpp +++ b/src/catch2/catch_approx.cpp @@ -70,10 +70,10 @@ namespace Catch { } namespace literals { - Approx operator "" _a(long double val) { + Approx operator ""_a(long double val) { return Approx(val); } - Approx operator "" _a(unsigned long long val) { + Approx operator ""_a(unsigned long long val) { return Approx(val); } } // end namespace literals |