|
|
|
@ -164,10 +164,11 @@ namespace Literals { |
|
|
|
load-bearing in any other contexts. Clang 17+ adds an off-by-default warning |
|
|
|
load-bearing in any other contexts. Clang 17+ adds an off-by-default warning |
|
|
|
for this; GCC 4.8 however *requires* the space there, so until GCC 4.8 |
|
|
|
for this; GCC 4.8 however *requires* the space there, so until GCC 4.8 |
|
|
|
support is dropped, we suppress this warning instead of removing the |
|
|
|
support is dropped, we suppress this warning instead of removing the |
|
|
|
space. */ |
|
|
|
space. GCC 15 now has the same warning but it's enabled by default on |
|
|
|
#if defined(CORRADE_TARGET_CLANG) && __clang_major__ >= 17 |
|
|
|
-std=c++23. */ |
|
|
|
#pragma clang diagnostic push |
|
|
|
#if (defined(CORRADE_TARGET_CLANG) && __clang_major__ >= 17) || (defined(CORRADE_TARGET_GCC) && !defined(CORRADE_TARGET_CLANG) && __GNUC__ >= 15) |
|
|
|
#pragma clang diagnostic ignored "-Wdeprecated-literal-operator" |
|
|
|
#pragma GCC diagnostic push |
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-literal-operator" |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
/** @relatesalso Magnum::Math::Deg
|
|
|
|
/** @relatesalso Magnum::Math::Deg
|
|
|
|
@brief Double-precision degree value literal |
|
|
|
@brief Double-precision degree value literal |
|
|
|
@ -192,8 +193,8 @@ Example usage: |
|
|
|
@m_keywords{_degf degf} |
|
|
|
@m_keywords{_degf degf} |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
constexpr Deg<Float> operator"" _degf(long double value) { return Deg<Float>(Float(value)); } |
|
|
|
constexpr Deg<Float> operator"" _degf(long double value) { return Deg<Float>(Float(value)); } |
|
|
|
#if defined(CORRADE_TARGET_CLANG) && __clang_major__ >= 17 |
|
|
|
#if (defined(CORRADE_TARGET_CLANG) && __clang_major__ >= 17) || (defined(CORRADE_TARGET_GCC) && !defined(CORRADE_TARGET_CLANG) && __GNUC__ >= 15) |
|
|
|
#pragma clang diagnostic pop |
|
|
|
#pragma GCC diagnostic pop |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
}} |
|
|
|
}} |
|
|
|
@ -267,10 +268,11 @@ namespace Literals { |
|
|
|
load-bearing in any other contexts. Clang 17+ adds an off-by-default warning |
|
|
|
load-bearing in any other contexts. Clang 17+ adds an off-by-default warning |
|
|
|
for this; GCC 4.8 however *requires* the space there, so until GCC 4.8 |
|
|
|
for this; GCC 4.8 however *requires* the space there, so until GCC 4.8 |
|
|
|
support is dropped, we suppress this warning instead of removing the |
|
|
|
support is dropped, we suppress this warning instead of removing the |
|
|
|
space. */ |
|
|
|
space. GCC 15 now has the same warning but it's enabled by default on |
|
|
|
#if defined(CORRADE_TARGET_CLANG) && __clang_major__ >= 17 |
|
|
|
-std=c++23. */ |
|
|
|
#pragma clang diagnostic push |
|
|
|
#if (defined(CORRADE_TARGET_CLANG) && __clang_major__ >= 17) || (defined(CORRADE_TARGET_GCC) && !defined(CORRADE_TARGET_CLANG) && __GNUC__ >= 15) |
|
|
|
#pragma clang diagnostic ignored "-Wdeprecated-literal-operator" |
|
|
|
#pragma GCC diagnostic push |
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-literal-operator" |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
/** @relatesalso Magnum::Math::Rad
|
|
|
|
/** @relatesalso Magnum::Math::Rad
|
|
|
|
@brief Double-precision radian value literal |
|
|
|
@brief Double-precision radian value literal |
|
|
|
@ -289,8 +291,8 @@ See @link operator""_degf() @endlink for more information. |
|
|
|
@m_keywords{_radf radf} |
|
|
|
@m_keywords{_radf radf} |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
constexpr Rad<Float> operator"" _radf(long double value) { return Rad<Float>(Float(value)); } |
|
|
|
constexpr Rad<Float> operator"" _radf(long double value) { return Rad<Float>(Float(value)); } |
|
|
|
#if defined(CORRADE_TARGET_CLANG) && __clang_major__ >= 17 |
|
|
|
#if (defined(CORRADE_TARGET_CLANG) && __clang_major__ >= 17) || (defined(CORRADE_TARGET_GCC) && !defined(CORRADE_TARGET_CLANG) && __GNUC__ >= 15) |
|
|
|
#pragma clang diagnostic pop |
|
|
|
#pragma GCC diagnostic pop |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
}} |
|
|
|
}} |
|
|
|
|