]> https://gitweb.dealii.org/ - dealii.git/commitdiff
remove bundled muparser gcc 9 warning
authorTimo Heister <timo.heister@gmail.com>
Fri, 20 Mar 2020 19:00:31 +0000 (15:00 -0400)
committerTimo Heister <timo.heister@gmail.com>
Fri, 20 Mar 2020 19:00:48 +0000 (15:00 -0400)
I am not sure I understand if the default assignment operator does the
right thing here, but this avoids the warning and shouldn't change
functionality.

bundled/muparser_v2_2_4/include/muParserCallback.h

index ef32b4989e34b92c82ad06daf50014022781657c..0beb8c5d4f3d153301e0bdbb46fbc6df914c5654 100644 (file)
@@ -81,6 +81,9 @@ public:
     ParserCallback(strfun_type3 a_pFun, bool a_bAllowOpti);\r
     ParserCallback();\r
     ParserCallback(const ParserCallback &a_Fun);\r
+\r
+    // deall.II: added the following line to remove Wdeprecated-copy warnings:\r
+    constexpr ParserCallback& operator=(const ParserCallback&)=default;\r
     \r
     ParserCallback* Clone() const;\r
 \r

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.