Skip to content

Commit

Permalink
actually MSVC doesn't set __cpp_constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
sthalik committed Oct 22, 2022
1 parent f75ad17 commit beef203
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Magnum/Math/Math.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ namespace Implementation {
}}

// TODO remove this once corrade#152 gets merged
#if __cpp_constexpr >= 201304
#if defined __cpp_constexpr && __cpp_constexpr >= 201304 || \
defined CORRADE_TARGET_MSVC && _MSC_VER >= 1910 && CORRADE_CXX_STANDARD >= 201402L
#define MAGNUM_CONSTEXPR14 constexpr
#else
#define MAGNUM_CONSTEXPR14
Expand Down

0 comments on commit beef203

Please sign in to comment.