2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-30 20:12:37 +00:00

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.
This commit is contained in:
Jason Newton
2015-08-16 05:40:49 -07:00
parent 5dce79445d
commit d18c7787e6

View File

@@ -14,6 +14,11 @@
# include <boost/python/type_id.hpp>
# include <boost/type.hpp>
#if defined(BOOST_PYTHON_TRACE_REGISTRY) \
|| defined(BOOST_PYTHON_CONVERTER_REGISTRY_APPLE_MACH_WORKAROUND)
# include <iostream>
#endif
namespace boost {
// You'll see shared_ptr mentioned in this header because we need to