You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've read in #52 about aiming for C++11 support but did you consider supporting constexpr arithmetic operators and math in general?
I don't see any sideeffects fpm::ceil function so it should not be a problem when it is correctly version-checked.
Operators are a little trickier as you have the += implemented but marking it as constexpr won't work. That means static_assert(P{1} + P{2} == P{3}, "Arithmetics failed"); won't compile.
I expect inlining allows the compiler to process it at compile time anyone but it is not possible to use inside explicit constexpr functions.
The text was updated successfully, but these errors were encountered:
Hi, I've read in #52 about aiming for C++11 support but did you consider supporting
constexpr
arithmetic operators and math in general?I don't see any sideeffects
fpm::ceil
function so it should not be a problem when it is correctly version-checked.Operators are a little trickier as you have the
+=
implemented but marking it asconstexpr
won't work. That meansstatic_assert(P{1} + P{2} == P{3}, "Arithmetics failed");
won't compile.I expect inlining allows the compiler to process it at compile time anyone but it is not possible to use inside explicit
constexpr
functions.The text was updated successfully, but these errors were encountered: