[Orxonox-commit 3425] r8112 - code/branches/kicklib/src/libraries/core

rgrieder at orxonox.net rgrieder at orxonox.net
Thu Mar 24 19:11:56 CET 2011


Author: rgrieder
Date: 2011-03-24 19:11:55 +0100 (Thu, 24 Mar 2011)
New Revision: 8112

Modified:
   code/branches/kicklib/src/libraries/core/Identifier.h
Log:
Fixed a possible bug. If you're interested why, ask me directly because the explanation is quite tricky.
This is the same kind of bug that occurred on an ArchLinux box very recently and was fixed in r8089.

Modified: code/branches/kicklib/src/libraries/core/Identifier.h
===================================================================
--- code/branches/kicklib/src/libraries/core/Identifier.h	2011-03-24 16:31:00 UTC (rev 8111)
+++ code/branches/kicklib/src/libraries/core/Identifier.h	2011-03-24 18:11:55 UTC (rev 8112)
@@ -394,7 +394,7 @@
     void ClassIdentifier<T>::initialiseIdentifier()
     {
         // Get the name of the class
-        const std::string& name = typeid(T).name();
+        std::string name = typeid(T).name();
 
         // create a new identifier anyway. Will be deleted in Identifier::getIdentifier if not used.
         ClassIdentifier<T>* proposal = new ClassIdentifier<T>();




More information about the Orxonox-commit mailing list