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"