diff --git a/dune/stuff/common/math.hh b/dune/stuff/common/math.hh index b687e2bd7475a4c13a8e23c8656bfb92b47c820b..f1ce16664703e73de710b4ead8308ca71ff584c9 100644 --- a/dune/stuff/common/math.hh +++ b/dune/stuff/common/math.hh @@ -15,7 +15,6 @@ #include <iostream> #include <dune/common/deprecated.hh> -#include <dune/common/static_assert.hh> #include <boost/static_assert.hpp> #include <boost/fusion/include/void.hpp> @@ -63,9 +62,9 @@ namespace Common { template <class SomeRangeType, class OtherRangeType> static double colonProduct(const SomeRangeType& arg1, const OtherRangeType& arg2) { - dune_static_assert(SomeRangeType::cols == SomeRangeType::rows && OtherRangeType::cols == OtherRangeType::rows - && int(OtherRangeType::cols) == int(SomeRangeType::rows), - "RangeTypes_dont_fit"); + static_assert(SomeRangeType::cols == SomeRangeType::rows && OtherRangeType::cols == OtherRangeType::rows + && int(OtherRangeType::cols) == int(SomeRangeType::rows), + "RangeTypes_dont_fit"); double ret = 0.0; // iterators @@ -190,8 +189,8 @@ public: template <class stl_container_type> MinMaxAvg(const stl_container_type& elements) { - dune_static_assert((boost::is_same<ElementType, typename stl_container_type::value_type>::value), - "cannot assign mismatching types"); + static_assert((boost::is_same<ElementType, typename stl_container_type::value_type>::value), + "cannot assign mismatching types"); acc_ = std::for_each(elements.begin(), elements.end(), acc_); } diff --git a/dune/stuff/common/matrix.hh b/dune/stuff/common/matrix.hh index b23e59816041199aeb11fbd4fee891841e1c4af1..d05bb90a0cb172cedb5d839d5c990b60aa31ddd0 100644 --- a/dune/stuff/common/matrix.hh +++ b/dune/stuff/common/matrix.hh @@ -11,7 +11,6 @@ // dune-common #include <dune/common/densematrix.hh> -#include <dune/common/static_assert.hh> #include <dune/stuff/common/debug.hh> #include <dune/stuff/common/math.hh> @@ -68,7 +67,7 @@ class MatrixDiagonal : public FieldVector<typename FieldMatrixType::field_type, public: MatrixDiagonal(const FieldMatrixType& matrix) { - dune_static_assert(FieldMatrixType::rows == FieldMatrixType::cols, "Matrix must be square!"); + static_assert(FieldMatrixType::rows == FieldMatrixType::cols, "Matrix must be square!"); // CompileTimeChecker< FieldMatrixType::rows == FieldMatrixType::cols > matrix_must_be_square; for (size_t i = 0; i < FieldMatrixType::rows; i++) diff --git a/dune/stuff/common/misc.hh b/dune/stuff/common/misc.hh index 1d7fb751feb77d399e561ee452c44f72e31fc707..900c097bcea4d992a09eba5b546c2bf5dffebb81 100644 --- a/dune/stuff/common/misc.hh +++ b/dune/stuff/common/misc.hh @@ -16,7 +16,6 @@ #include <algorithm> #include <dune/common/version.hh> #include <dune/common/array.hh> -#include <dune/common/static_assert.hh> #include <dune/common/deprecated.hh> #include <dune/common/exceptions.hh> diff --git a/dune/stuff/common/string.hh b/dune/stuff/common/string.hh index deea0fd058887621f9938f2ff27c924bf33bfd2e..28048c8873a43a1eaddd6cc3435973c37a527b47 100644 --- a/dune/stuff/common/string.hh +++ b/dune/stuff/common/string.hh @@ -18,7 +18,6 @@ #include <dune/common/array.hh> #include <dune/common/deprecated.hh> -#include <dune/common/static_assert.hh> #include <ostream> #include <iomanip> #include <vector>