diff --git a/opm/core/utility/Average.hpp b/opm/core/utility/Average.hpp index 7e3118e5..1e6affd3 100644 --- a/opm/core/utility/Average.hpp +++ b/opm/core/utility/Average.hpp @@ -37,7 +37,6 @@ #define OPM_AVERAGE_HEADER -#include #include #include @@ -53,7 +52,7 @@ namespace Opm { { // To avoid some user errors, we disallow taking averages of // integral values. - BOOST_STATIC_ASSERT(boost::is_integral::value == false); + static_assert(boost::is_integral::value == false, ""); Tresult retval(t1); retval += t2; retval *= 0.5; @@ -71,7 +70,7 @@ namespace Opm { { // To avoid some user errors, we disallow taking averages of // integral values. - BOOST_STATIC_ASSERT(boost::is_integral::value == false); + static_assert(boost::is_integral::value == false, ""); return std::sqrt(t1*t2); } @@ -84,7 +83,7 @@ namespace Opm { { // To avoid some user errors, we disallow taking averages of // integral values. - BOOST_STATIC_ASSERT(boost::is_integral::value == false); + static_assert(boost::is_integral::value == false, ""); return (2*t1*t2)/(t1 + t2); }