diff --git a/common/fassign.hh b/common/fassign.hh index efe7778bc7bd126537027e175f824cbc1f03ea90..a0baa95078c49d10456305977b71af4e332fe429 100644 --- a/common/fassign.hh +++ b/common/fassign.hh @@ -18,19 +18,22 @@ namespace Dune { * * overload operator <<= for FieldVector assignment from Dune::Zero */ - class Zero { + struct Zero { + Zero (int) {}; /** \brief Conversion operator to double */ operator double () { return 0.0; } /** \brief Conversion operator to int */ operator int () { return 0; } - } zero; + } zero = 0; /** * @brief Marker class for next row * * overload operator <<= for FiledMatrix assignment */ - class NextRow {} nextRow; + struct NextRow { + NextRow (int) {}; + } nextRow = 0; } // end empty namespace