Change the deprecated C++ enum math to constexprs

release/4.3a0
Fan Jiang 2024-12-01 12:47:56 -05:00
parent 137a503746
commit d8e4125558
2 changed files with 5 additions and 5 deletions

View File

@ -32,8 +32,8 @@ class ProductLieGroup: public std::pair<G, H> {
typedef std::pair<G, H> Base; typedef std::pair<G, H> Base;
protected: protected:
enum {dimension1 = traits<G>::dimension}; constexpr static const size_t dimension1 = traits<G>::dimension;
enum {dimension2 = traits<H>::dimension}; constexpr static const size_t dimension2 = traits<H>::dimension;
public: public:
/// Default constructor yields identity /// Default constructor yields identity

View File

@ -55,9 +55,9 @@ private:
R range_; R range_;
public: public:
enum { dimB = traits<B>::dimension }; constexpr static const size_t dimB = traits<B>::dimension;
enum { dimR = traits<R>::dimension }; constexpr static const size_t dimR = traits<R>::dimension;
enum { dimension = dimB + dimR }; constexpr static const size_t dimension = dimB + dimR;
/// @name Standard Constructors /// @name Standard Constructors
/// @{ /// @{