Change the deprecated C++ enum math to constexprs
parent
137a503746
commit
d8e4125558
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
/// @{
|
/// @{
|
||||||
|
|
Loading…
Reference in New Issue