File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 22// Software License, Version 1.0. (See accompanying
33// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
44
5+ #include < boost/python/module.hpp>
6+ #include < boost/python/def.hpp>
57#include < string>
68
79namespace { // Avoid cluttering the global namespace.
@@ -11,8 +13,6 @@ namespace { // Avoid cluttering the global namespace.
1113 int square (int number) { return number * number; }
1214}
1315
14- #include < boost/python/module.hpp>
15- #include < boost/python/def.hpp>
1616namespace python = boost::python;
1717
1818// Python requires an exported function called init<module-name> in every
Original file line number Diff line number Diff line change 22// Software License, Version 1.0. (See accompanying
33// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
44
5+ #include < boost/python/class.hpp>
6+ #include < boost/python/module.hpp>
7+ #include < boost/python/def.hpp>
58#include < iostream>
69#include < string>
710
@@ -23,10 +26,6 @@ namespace { // Avoid cluttering the global namespace.
2326 }
2427}
2528
26- #include < boost/python/class.hpp>
27- #include < boost/python/module.hpp>
28- #include < boost/python/def.hpp>
29-
3029BOOST_PYTHON_MODULE (getting_started2)
3130{
3231 using namespace boost ::python;
You can’t perform that action at this time.
0 commit comments