diff options
Diffstat (limited to 'boost/units/detail/linear_algebra.hpp')
-rw-r--r-- | boost/units/detail/linear_algebra.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/boost/units/detail/linear_algebra.hpp b/boost/units/detail/linear_algebra.hpp index 96b27a2532..17ed34bd1b 100644 --- a/boost/units/detail/linear_algebra.hpp +++ b/boost/units/detail/linear_algebra.hpp @@ -598,8 +598,8 @@ struct set_insert<false> { template<class Set, class T> struct has_key { - static const long size = sizeof(Set::lookup((wrap<T>*)0)); - static const bool value = (size == sizeof(set_yes)); + BOOST_STATIC_CONSTEXPR long size = sizeof(Set::lookup((wrap<T>*)0)); + BOOST_STATIC_CONSTEXPR bool value = (size == sizeof(set_yes)); }; template<int N> @@ -826,7 +826,7 @@ struct normalize_units { dimensions >::type matrix; typedef typename make_square_and_invert<matrix>::type type; - static const long extra = (type::size::value) - (T::size::value); + BOOST_STATIC_CONSTEXPR long extra = (type::size::value) - (T::size::value); }; // multiply_add_units computes M x V @@ -977,7 +977,7 @@ struct is_simple_system_impl { typename test::base_dimension_type > > type; - static const bool value = (type::value); + BOOST_STATIC_CONSTEXPR bool value = (type::value); }; }; @@ -1001,7 +1001,7 @@ struct is_simple_system { typename test::base_dimension_type > >::type type; - static const bool value = type::value; + BOOST_STATIC_CONSTEXPR bool value = type::value; }; template<bool> |