C++11: Made VectorT::size() and VectorT::dim() constexpr.

This commit is contained in:
Hans-Christian Ebke
2015-11-19 14:08:42 +01:00
parent 687da4e08f
commit 784adb9744

View File

@@ -95,12 +95,12 @@ class VectorT {
typedef VectorT<Scalar, DIM> vector_type;
/// returns dimension of the vector (deprecated)
static inline int dim() {
static constexpr int dim() {
return DIM;
}
/// returns dimension of the vector
static inline size_t size() {
static constexpr size_t size() {
return DIM;
}