From d18c7787e66b85c00bada7470bd7024055f637bf Mon Sep 17 00:00:00 2001 From: Jason Newton Date: Sun, 16 Aug 2015 05:40:49 -0700 Subject: [PATCH] fix a static initialization fiasco with ios_base see http://stackoverflow.com/questions/12318693/c-segmentation-fault- when-using-cout-in-static-variable-initialization for a reference of what was happening when iostreams were used within boost.python registry's global static ctors. --- include/boost/python/converter/registered.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/boost/python/converter/registered.hpp b/include/boost/python/converter/registered.hpp index 68bb3c4a..ad9a00b3 100644 --- a/include/boost/python/converter/registered.hpp +++ b/include/boost/python/converter/registered.hpp @@ -14,6 +14,11 @@ # include # include +#if defined(BOOST_PYTHON_TRACE_REGISTRY) \ + || defined(BOOST_PYTHON_CONVERTER_REGISTRY_APPLE_MACH_WORKAROUND) +# include +#endif + namespace boost { // You'll see shared_ptr mentioned in this header because we need to