[Orxonox-commit 6425] r11082 - code/trunk/src/libraries/core/class

landauf at orxonox.net landauf at orxonox.net
Wed Jan 20 23:05:10 CET 2016


Author: landauf
Date: 2016-01-20 23:05:10 +0100 (Wed, 20 Jan 2016)
New Revision: 11082

Modified:
   code/trunk/src/libraries/core/class/OrxonoxClass.h
Log:
trying to fix bogus (?) warning on gcc [see http://orxonox2.vseth.ethz.ch/phpBB3/viewtopic.php?f=3&t=1127&p=5314#p5314]

Modified: code/trunk/src/libraries/core/class/OrxonoxClass.h
===================================================================
--- code/trunk/src/libraries/core/class/OrxonoxClass.h	2016-01-20 21:56:27 UTC (rev 11081)
+++ code/trunk/src/libraries/core/class/OrxonoxClass.h	2016-01-20 22:05:10 UTC (rev 11082)
@@ -54,6 +54,14 @@
     {
         public:
             OrxonoxClass();
+
+            // This is only here to work around a bogus warning in GCC:
+            //
+            //   OrxonoxClass.h:53:23: warning: defaulted move assignment for 'orxonox::OrxonoxClass' calls a non-trivial move assignment operator for virtual base 'orxonox::Configurable' [-Wvirtual-move-assign]
+            //   class _CoreExport OrxonoxClass : virtual public Configurable, virtual public Destroyable
+            //
+            // You can remove this line if the whole project compiles without warnings in future versions of GCC.
+            OrxonoxClass& operator=(const OrxonoxClass&) = default;
     };
 }
 




More information about the Orxonox-commit mailing list