Skip to content

Commit

Permalink
Avoid deprecated declaration of user-defined string literal
Browse files Browse the repository at this point in the history
The former form is deprecated and recent clang warns about it
  • Loading branch information
mabraham committed Aug 14, 2023
1 parent 395b7b7 commit b318e38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/legacy/include/gromacs/utility/real.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ typedef float real;
* constant in double even if all variables are real. A constant shouldn't be real when used with
* double operands, because then the constant is less accurate with GMX_DOUBLE=no.
*
* See https://en.cppreference.com/w/cpp/language/user_literal for details on this lanuage feature.
* See https://en.cppreference.com/w/cpp/language/user_literal for details on this language feature.
*/
constexpr real operator"" _real(long double x)
constexpr real operator""_real(long double x)
{
return real(x);
}
Expand Down

0 comments on commit b318e38

Please sign in to comment.