Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliminate constexpr support for vc141 or lower #397

Merged
merged 1 commit into from
Dec 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 17 additions & 12 deletions math/wide_integer/uintwide_t.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,26 +95,31 @@

#if defined(_MSVC_LANG)
#if (_MSVC_LANG >= 201402L)
#define WIDE_INTEGER_CONSTEXPR constexpr // NOLINT(cppcoreguidelines-macro-usage)
#define WIDE_INTEGER_CONSTEXPR_IS_COMPILE_TIME_CONST 1 // NOLINT(cppcoreguidelines-macro-usage)
#if (defined(_MSC_VER) && (_MSC_VER < 1920))
#define WIDE_INTEGER_CONSTEXPR // NOLINT(cppcoreguidelines-macro-usage)
#define WIDE_INTEGER_CONSTEXPR_IS_COMPILE_TIME_CONST 0 // NOLINT(cppcoreguidelines-macro-usage)
#else
#define WIDE_INTEGER_CONSTEXPR constexpr // NOLINT(cppcoreguidelines-macro-usage)
#define WIDE_INTEGER_CONSTEXPR_IS_COMPILE_TIME_CONST 1 // NOLINT(cppcoreguidelines-macro-usage)
#endif
#else
#define WIDE_INTEGER_CONSTEXPR // NOLINT(cppcoreguidelines-macro-usage)
#define WIDE_INTEGER_CONSTEXPR_IS_COMPILE_TIME_CONST 0 // NOLINT(cppcoreguidelines-macro-usage)
#define WIDE_INTEGER_CONSTEXPR // NOLINT(cppcoreguidelines-macro-usage)
#define WIDE_INTEGER_CONSTEXPR_IS_COMPILE_TIME_CONST 0 // NOLINT(cppcoreguidelines-macro-usage)
#endif
#else
#if (defined(__AVR__) && (defined(__GNUC__) && (__GNUC__ < 10)))
#define WIDE_INTEGER_CONSTEXPR // NOLINT(cppcoreguidelines-macro-usage)
#define WIDE_INTEGER_CONSTEXPR_IS_COMPILE_TIME_CONST 0 // NOLINT(cppcoreguidelines-macro-usage)
#define WIDE_INTEGER_CONSTEXPR // NOLINT(cppcoreguidelines-macro-usage)
#define WIDE_INTEGER_CONSTEXPR_IS_COMPILE_TIME_CONST 0 // NOLINT(cppcoreguidelines-macro-usage)
#elif (defined(__MINGW32__) && (defined(__GNUC__) && (__GNUC__ < 9)))
#define WIDE_INTEGER_CONSTEXPR // NOLINT(cppcoreguidelines-macro-usage)
#define WIDE_INTEGER_CONSTEXPR_IS_COMPILE_TIME_CONST 0 // NOLINT(cppcoreguidelines-macro-usage)
#define WIDE_INTEGER_CONSTEXPR // NOLINT(cppcoreguidelines-macro-usage)
#define WIDE_INTEGER_CONSTEXPR_IS_COMPILE_TIME_CONST 0 // NOLINT(cppcoreguidelines-macro-usage)
#else
#if (__cplusplus >= 201402L)
#define WIDE_INTEGER_CONSTEXPR constexpr // NOLINT(cppcoreguidelines-macro-usage)
#define WIDE_INTEGER_CONSTEXPR_IS_COMPILE_TIME_CONST 1 // NOLINT(cppcoreguidelines-macro-usage)
#define WIDE_INTEGER_CONSTEXPR constexpr // NOLINT(cppcoreguidelines-macro-usage)
#define WIDE_INTEGER_CONSTEXPR_IS_COMPILE_TIME_CONST 1 // NOLINT(cppcoreguidelines-macro-usage)
#else
#define WIDE_INTEGER_CONSTEXPR // NOLINT(cppcoreguidelines-macro-usage)
#define WIDE_INTEGER_CONSTEXPR_IS_COMPILE_TIME_CONST 0 // NOLINT(cppcoreguidelines-macro-usage)
#define WIDE_INTEGER_CONSTEXPR // NOLINT(cppcoreguidelines-macro-usage)
#define WIDE_INTEGER_CONSTEXPR_IS_COMPILE_TIME_CONST 0 // NOLINT(cppcoreguidelines-macro-usage)
#endif
#endif
#endif
Expand Down