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
It was often required to define certain constants statically and preferably as constexpr, although there are certain times, values may need to be -ve. This is already possible with full declaration of the unit, although does not support alongside the literals. Please see example below:
staticconstexpr units::angle::radian_tkAngularValue{-30.0_deg}; /// ERROR: Compiler will not find `constexpr`/// definition of the literal to convert deg to/// radian implicitly for negative numbers.staticconstexpr units::angle::radian_tkAngularValue = units::angle::degree_t{-30.0}; /// WORKS FINEstaticconstexpr units::angle::radian_tkAngularValue{30.0_deg}; /// WORKS FINE
It was often required to define certain constants statically and preferably as
constexpr
, although there are certain times, values may need to be-ve
. This is already possible with full declaration of the unit, although does not support alongside the literals. Please see example below:I request the FIX or SUPPORT for such use-case.
Thanks in advance.
Library Version: v2.3.1
Compiler Used: GCC v12, Clang v12
The text was updated successfully, but these errors were encountered: