Skip to content

Commit

Permalink
Refactor math.hpp to define constexpr keyword for older compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
fbriol committed Oct 23, 2024
1 parent 7aa9215 commit 653d3b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/fes/detail/math.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@

#if defined(__GNUC__) && (__GNUC__ >= 11) || \
defined(__clang__) && (__cplusplus >= 202303L)
/// @brief Define the constexpr keyword for newer compilers
#define FES_MATH_CONSTEXPR constexpr
#else
/// @brief Define the constexpr keyword for older compilers
#define FES_MATH_CONSTEXPR inline
#endif

Expand Down

0 comments on commit 653d3b3

Please sign in to comment.