...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
1. If you should ever have occasion to #include
"python.h"
directly in a
translation unit of a program using Boost.Python, use #include
"boost/python/detail/wrap_python.hpp"
instead. It handles several issues necessary for use with Boost.Python, one
of which is mentioned in the next section.
2. Be sure not to #include
any system headers before wrap_python.hpp
. This
restriction is actually imposed by Python, or more properly, by Python's
interaction with your operating system. See http://docs.python.org/ext/simpleExample.html
for details.