diff --git a/src/framework/dim.h b/src/framework/dim.h index 4d308831933bd1e8426b2816f5e07edf0b896edd..b84f6954932edff65da177307660bba7784b7e45 100644 --- a/src/framework/dim.h +++ b/src/framework/dim.h @@ -213,27 +213,21 @@ int64_t &Dim::operator[](int i) { } // Dynamic access to constant Dim -inline int64_t Dim<0>::operator[](int i) const { - return indexer(*this, i); -} +inline int64_t Dim<0>::operator[](int i) const { return indexer(*this, i); } // Dynamic access to mutable Dim -inline int64_t &Dim<0>::operator[](int i) { - return indexer(*this, i); -} +inline int64_t &Dim<0>::operator[](int i) { return indexer(*this, i); } // Dynamic access to constant Dim // without std::enable_if will try to instantiate this on get<0>(d) template -typename std::enable_if<(l > 0), int64_t>::type get(const Dim &d, - int i) { +typename std::enable_if<(l > 0), int64_t>::type get(const Dim &d, int i) { return d[i]; } // Dynamic access to mutable Dim template -typename std::enable_if<(l > 0), int64_t &>::type get(Dim &d, - int i) { +typename std::enable_if<(l > 0), int64_t &>::type get(Dim &d, int i) { return d[i]; } @@ -351,8 +345,7 @@ Dim normalize_strides(const Dim &size, const Dim &stride) { ///\cond HIDDEN template <> -inline Dim<0> normalize_strides(const Dim<0> &size, - const Dim<0> &stride) { +inline Dim<0> normalize_strides(const Dim<0> &size, const Dim<0> &stride) { return Dim<0>(); }