Changeset 3196 for code/trunk/src/util/MultiType.h
- Timestamp:
- Jun 20, 2009, 9:20:47 AM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/pch (added) merged: 3114-3118,3124-3125,3127-3131,3133,3138-3194
- Property svn:mergeinfo changed
-
code/trunk/src/util/MultiType.h
r3084 r3196 69 69 #include "UtilPrereqs.h" 70 70 71 #include <boost/static_assert.hpp> 72 73 #include "Math.h" 71 #include <cassert> 72 #include <string> 73 #include <OgreVector2.h> 74 #include <OgreVector3.h> 75 #include <OgreVector4.h> 76 #include <OgreQuaternion.h> 77 #include <OgreColourValue.h> 74 78 75 79 namespace orxonox … … 441 445 template <typename T> inline void changeValueContainer(const T& value) { if (this->value_) { delete this->value_; } this->createNewValueContainer<T>(value); } 442 446 /** @brief Creates a new value container (works only with specialized types). */ 443 template <typename T> void createNewValueContainer(const T& value) { BOOST_STATIC_ASSERT(sizeof(T) == 0); return false; }447 template <typename T> void createNewValueContainer(const T& value) { /* STATIC ASSERT */ *****value; return false; } 444 448 445 449 MT_ValueBase* value_; //!< A pointer to the value container
Note: See TracChangeset
for help on using the changeset viewer.