From cb3fe547f43b5c557b503474ec90e647c5981581 Mon Sep 17 00:00:00 2001 From: Ben Wibking Date: Tue, 5 Nov 2024 14:28:53 -0500 Subject: [PATCH] update to comply with C++ defect report on user-defined literals --- Src/Base/AMReX_REAL.H | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Src/Base/AMReX_REAL.H b/Src/Base/AMReX_REAL.H index 54815fa3da1..246762b2989 100644 --- a/Src/Base/AMReX_REAL.H +++ b/Src/Base/AMReX_REAL.H @@ -100,25 +100,25 @@ inline namespace literals { ``` */ constexpr Real - operator"" _rt( long double x ) + operator""_rt( long double x ) { return Real( x ); } constexpr Real - operator"" _rt( unsigned long long int x ) + operator""_rt( unsigned long long int x ) { return Real( x ); } constexpr ParticleReal - operator"" _prt( long double x ) + operator""_prt( long double x ) { return ParticleReal( x ); } constexpr ParticleReal - operator"" _prt( unsigned long long int x ) + operator""_prt( unsigned long long int x ) { return ParticleReal( x ); }