From 53168816525c7d20dba0658f2a860972d31108b4 Mon Sep 17 00:00:00 2001 From: Eduard Valeyev Date: Mon, 23 Jun 2014 10:37:38 -0400 Subject: [PATCH] Range1d::rank is constexpr. --- btas/range.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/btas/range.h b/btas/range.h index 960b9a8f..9fa01385 100644 --- a/btas/range.h +++ b/btas/range.h @@ -137,7 +137,7 @@ namespace btas { /// \return The rank (number of dimensions) of this range /// \throw nothing - size_t rank() const { + constexpr size_t rank() const { return 1ul; }