From be4e355ef360bdd5c845bb3f38dfab0aedfa15fb Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Sat, 22 May 2010 23:12:12 +0000 Subject: [PATCH] VC2005 build fix This was SVN commit r7572. --- .../simulation2/system/ComponentManagerSerialization.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/simulation2/system/ComponentManagerSerialization.cpp b/source/simulation2/system/ComponentManagerSerialization.cpp index 7b3986d050..85273cc594 100644 --- a/source/simulation2/system/ComponentManagerSerialization.cpp +++ b/source/simulation2/system/ComponentManagerSerialization.cpp @@ -17,6 +17,13 @@ #include "precompiled.h" +// Ugly hack: Boost disables rand48's operator<< in VC2005 and older, but we'd quite +// like to use it, so remove the macro that disables it (before we include +// linear_congruential.hpp) +#if MSC_VERSION && MSC_VERSION <= 1400 +#undef BOOST_NO_MEMBER_TEMPLATE_FRIENDS +#endif + #include "ComponentManager.h" #include "IComponent.h" #include "ParamNode.h"