Skip to content
Snippets Groups Projects
Commit fe71bbd0 authored by Mark OLESEN's avatar Mark OLESEN Committed by Andrew Heather
Browse files

STYLE: use constexpr for pTraits rank

parent 1c4e32fb
Branches
Tags
No related merge requests found
......@@ -63,7 +63,7 @@ public:
// Member constants
//- Rank of Barycentric is 1
static const direction rank = 1;
static constexpr direction rank = 1;
//- Component labeling enumeration
......
......@@ -63,7 +63,7 @@ public:
// Member constants
//- Rank of Barycentric2D is 1
static const direction rank = 1;
static constexpr direction rank = 1;
//- Component labeling enumeration
......
......@@ -59,13 +59,13 @@ public:
// Member constants
//- Dimensionality of space
static const direction dim = 3;
static constexpr direction dim = 3;
//- Rank of Scalar is 0
static const direction rank = 0;
static constexpr direction rank = 0;
//- Number of components in Scalar is 1
static const direction nComponents = 1;
static constexpr direction nComponents = 1;
// Static data members
......
......@@ -77,13 +77,13 @@ public:
// Member constants
//- Dimensionality of space
static const direction dim = 3;
static constexpr direction dim = 3;
//- Rank of bool is 0
static const direction rank = 0;
static constexpr direction rank = 0;
//- Number of components in bool is 1
static const direction nComponents = 1;
static constexpr direction nComponents = 1;
// Static data members
......
......@@ -142,13 +142,13 @@ public:
// Member constants
//- Dimensionality of space
static const direction dim = 3;
static constexpr direction dim = 3;
//- Rank of int32_t is 0
static const direction rank = 0;
static constexpr direction rank = 0;
//- Number of components in int32_t is 1
static const direction nComponents = 1;
static constexpr direction nComponents = 1;
// Static data members
......
......@@ -143,13 +143,13 @@ public:
// Member constants
//- Dimensionality of space
static const direction dim = 3;
static constexpr direction dim = 3;
//- Rank of int64_t is 0
static const direction rank = 0;
static constexpr direction rank = 0;
//- Number of components in int64_t is 1
static const direction nComponents = 1;
static constexpr direction nComponents = 1;
// Static data members
......
......@@ -133,13 +133,13 @@ public:
// Member constants
//- Dimensionality of space
static const direction dim = 3;
static constexpr direction dim = 3;
//- Rank of uint32_t is 0
static const direction rank = 0;
static constexpr direction rank = 0;
//- Number of components in uint32_t is 1
static const direction nComponents = 1;
static constexpr direction nComponents = 1;
// Static data members
......
......@@ -141,13 +141,13 @@ public:
// Member constants
//- Dimensionality of space
static const direction dim = 3;
static constexpr direction dim = 3;
//- Rank of uint64_t is 0
static const direction rank = 0;
static constexpr direction rank = 0;
//- Number of components in uint64_t is 1
static const direction nComponents = 1;
static constexpr direction nComponents = 1;
// Static data members
......
......@@ -110,7 +110,7 @@ public:
// Member constants
//- Rank of quaternion is 1
static const direction rank = 1;
static constexpr direction rank = 1;
// Static data members
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment