From b318e3850262c7e576429b248b716c3f93efcc80 Mon Sep 17 00:00:00 2001 From: Mark Abraham Date: Mon, 14 Aug 2023 09:20:21 +0200 Subject: [PATCH] Avoid deprecated declaration of user-defined string literal The former form is deprecated and recent clang warns about it --- api/legacy/include/gromacs/utility/real.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/legacy/include/gromacs/utility/real.h b/api/legacy/include/gromacs/utility/real.h index 3897d040892..6fcd888155e 100644 --- a/api/legacy/include/gromacs/utility/real.h +++ b/api/legacy/include/gromacs/utility/real.h @@ -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); }