Skip to content

Commit 75a0da3

Browse files
author
uid30600
committed
Reduce header interdependencies
[SVN r15242]
1 parent 33ee2a4 commit 75a0da3

18 files changed

+45
-19
lines changed

include/boost/python/back_reference.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
#ifndef BACK_REFERENCE_DWA2002510_HPP
77
# define BACK_REFERENCE_DWA2002510_HPP
88

9-
# include <boost/python/handle.hpp>
109
# include <boost/python/object_fwd.hpp>
1110
# include <boost/python/detail/dependent.hpp>
11+
# include <boost/python/detail/raw_pyobject.hpp>
1212

1313
namespace boost { namespace python {
1414

include/boost/python/class.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@
77
# define CLASS_DWA200216_HPP
88

99
# include <boost/python/class_fwd.hpp>
10+
# include <boost/python/object/class.hpp>
1011
# include <boost/python/bases.hpp>
1112
# include <boost/python/args.hpp>
12-
# include <boost/python/handle.hpp>
13-
# include <boost/python/object/class.hpp>
13+
14+
# include <boost/python/object.hpp>
15+
1416
# include <boost/python/type_id.hpp>
1517
# include <boost/python/detail/member_function_cast.hpp>
1618
# include <boost/python/object/class_converters.hpp>

include/boost/python/converter/arg_to_python.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
# include <boost/python/converter/registered.hpp>
1111
# include <boost/python/converter/registered_pointee.hpp>
1212
# include <boost/python/converter/arg_to_python_base.hpp>
13-
# include <boost/python/converter/object_manager.hpp>
1413
# include <boost/python/to_python_indirect.hpp>
1514
# include <boost/type_traits/cv_traits.hpp>
1615
# include <boost/type_traits/composite_traits.hpp>
@@ -26,6 +25,8 @@
2625

2726
namespace boost { namespace python { namespace converter {
2827

28+
template <class T> struct is_object_manager;
29+
2930
namespace detail
3031
{
3132
BOOST_PYTHON_DECL void throw_no_class_registered();

include/boost/python/converter/return_from_python.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#ifndef RETURN_FROM_PYTHON_DWA200265_HPP
77
# define RETURN_FROM_PYTHON_DWA200265_HPP
88

9-
# include <boost/python/converter/object_manager.hpp>
109
# include <boost/python/converter/from_python.hpp>
1110
# include <boost/python/converter/rvalue_from_python_data.hpp>
1211
# include <boost/python/converter/registered.hpp>
@@ -17,6 +16,8 @@
1716

1817
namespace boost { namespace python { namespace converter {
1918

19+
template <class T> struct is_object_manager;
20+
2021
namespace detail
2122
{
2223
template <class T>

include/boost/python/detail/void_return.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#ifndef VOID_RETURN_DWA200274_HPP
77
# define VOID_RETURN_DWA200274_HPP
88

9+
# include <boost/config.hpp>
10+
911
namespace boost { namespace python { namespace detail {
1012

1113
struct void_return

include/boost/python/enum.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
# include <boost/python/object/enum_base.hpp>
1010
# include <boost/python/converter/rvalue_from_python_data.hpp>
11+
# include <boost/python/converter/registered.hpp>
1112

1213
namespace boost { namespace python {
1314

include/boost/python/extract.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# include <boost/python/detail/void_return.hpp>
1717
# include <boost/python/object_core.hpp>
1818
# include <boost/python/refcount.hpp>
19+
# include <boost/utility.hpp>
1920

2021
namespace boost { namespace python {
2122

include/boost/python/object/class.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# include <boost/utility.hpp>
1212
# include <boost/python/instance_holder.hpp>
1313
# include <boost/python/object_core.hpp>
14+
# include <boost/python/type_id.hpp>
1415
# include <cstddef>
1516

1617
namespace boost { namespace python {
@@ -24,7 +25,7 @@ struct BOOST_PYTHON_DECL class_base : python::api::object
2425
char const* name // The name of the class
2526

2627
, std::size_t num_types // A list of class_ids. The first is the type
27-
, class_id const*const types // this is wrapping. The rest are the types of
28+
, type_info const*const types // this is wrapping. The rest are the types of
2829
// any bases.
2930

3031
, char const* doc = 0 // Docstring, if any.

include/boost/python/object/enum_base.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
# include <boost/python/object_core.hpp>
1010
# include <boost/python/type_id.hpp>
1111
# include <boost/python/converter/to_python_function_type.hpp>
12+
# include <boost/python/converter/convertible_function.hpp>
13+
# include <boost/python/converter/constructor_function.hpp>
1214

1315
namespace boost { namespace python { namespace objects {
1416

include/boost/python/object/instance.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
# include <boost/type_traits/alignment_traits.hpp>
1111
# include <cstddef>
1212

13+
namespace boost { namespace python
14+
{
15+
struct instance_holder;
16+
}} // namespace boost::python
17+
1318
namespace boost { namespace python { namespace objects {
1419

1520
// Each extension instance will be one of these

0 commit comments

Comments
 (0)