From 50289ede1dddecea4f00833613ccee2b61b4bb51 Mon Sep 17 00:00:00 2001 From: Christian Engwer <christi@dune-project.org> Date: Thu, 7 Feb 2008 22:52:23 +0000 Subject: [PATCH] avoid compiler warnings [[Imported from SVN: r5082]] --- common/fassign.hh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/common/fassign.hh b/common/fassign.hh index efe7778bc..a0baa9507 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 -- GitLab