Skip to content

Commit 4536558

Browse files
authored
comply with C++ defect report on user-defined literals (#4215)
## Summary C++ has new rules about user-defined literals. `AMReX_REAL.H` is updated to comply. Old syntax: ``` operator"" _rt ``` New syntax required by the C++ standards committee: ``` operator""_rt ``` ## Additional background https://cplusplus.github.io/CWG/issues/2521.html
1 parent 13e61eb commit 4536558

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Src/Base/AMReX_REAL.H

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,25 +100,25 @@ inline namespace literals {
100100
```
101101
*/
102102
constexpr Real
103-
operator"" _rt( long double x )
103+
operator""_rt( long double x )
104104
{
105105
return Real( x );
106106
}
107107

108108
constexpr Real
109-
operator"" _rt( unsigned long long int x )
109+
operator""_rt( unsigned long long int x )
110110
{
111111
return Real( x );
112112
}
113113

114114
constexpr ParticleReal
115-
operator"" _prt( long double x )
115+
operator""_prt( long double x )
116116
{
117117
return ParticleReal( x );
118118
}
119119

120120
constexpr ParticleReal
121-
operator"" _prt( unsigned long long int x )
121+
operator""_prt( unsigned long long int x )
122122
{
123123
return ParticleReal( x );
124124
}

0 commit comments

Comments
 (0)