[Orxonox-commit 709] r3241 - trunk/src/util

rgrieder at orxonox.net rgrieder at orxonox.net
Sun Jun 28 16:10:04 CEST 2009


Author: rgrieder
Date: 2009-06-28 16:10:03 +0200 (Sun, 28 Jun 2009)
New Revision: 3241

Modified:
   trunk/src/util/MultiType.h
Log:
You shouln't feed GCC too much non standard compliant code ;)

Modified: trunk/src/util/MultiType.h
===================================================================
--- trunk/src/util/MultiType.h	2009-06-28 13:04:30 UTC (rev 3240)
+++ trunk/src/util/MultiType.h	2009-06-28 14:10:03 UTC (rev 3241)
@@ -318,7 +318,7 @@
             /** @brief Current content gets overridden with default zero value */
             inline void                       resetValue()                    { if (this->value_) this->value_->reset(); }
 
-            template <typename T> inline void setType()                       { this->assignValue(TypeStripper<T>::RawType());        } /** @brief Resets the value and changes the internal type to T. */
+            template <typename T> inline void setType()                       { this->assignValue(typename TypeStripper<T>::RawType()); } /** @brief Resets the value and changes the internal type to T. */
             inline void                       setType(const MultiType& other) { this->setType(other.getType());                         } /** @brief Resets the value and changes the internal type to the type of the other MultiType. */
             inline void                       setType(MT_Type type)           { this->reset(); this->convert(type); this->resetValue(); } /** @brief Resets the value and changes the internal type to the given type. */
 




More information about the Orxonox-commit mailing list