Commit 784adb97 authored by Hans-Christian Ebke's avatar Hans-Christian Ebke
Browse files

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

parent 687da4e0
......@@ -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;
}
......
Markdown is supported
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