GeezerVison is showing github.com — Removed flotsam · boostorg/python@c9b4fb4
File tree
Expand file treeCollapse file tree
Open diff view settings
include/boost/python/object
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: include/boost/python/object/select_holder.hpp +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
9 | 9 | # include <boost/python/has_back_reference.hpp> |
10 | 10 | # include <boost/python/detail/not_specified.hpp> |
11 | 11 | # include <boost/python/detail/pointee.hpp> |
12 | | -# include <boost/python/detail/if_else.hpp> |
13 | 12 | # include <boost/python/object/value_holder.hpp> |
14 | 13 | # include <boost/python/object/pointer_holder.hpp> |
15 | 14 | # include <boost/type.hpp> |
16 | 15 | # include <boost/mpl/select_type.hpp> |
| 16 | +# include <boost/type_traits/same_traits.hpp> |
17 | 17 |
|
18 | 18 | namespace boost { namespace python { namespace objects { |
19 | 19 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: test/if_else.cpp -16Lines changed: 0 additions & 16 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
15 | 15 | template <unsigned size> |
16 | 16 | struct choose |
17 | 17 | { |
18 | | -#if 1 |
19 | 18 | typedef typename boost::python::detail::if_< |
20 | 19 | (sizeof(c1) == size) |
21 | 20 | >::template then< |
@@ -33,21 +32,6 @@ struct choose |
33 | 32 | >::template then< |
34 | 33 | c4 |
35 | 34 | >::template else_<void*>::type type; |
36 | | -#else |
37 | | - typedef typename boost::python::detail::if_< |
38 | | - (sizeof(c1) == size) |
39 | | - , c1 |
40 | | - >::template elif< |
41 | | - (sizeof(c2) == size) |
42 | | - , c2 |
43 | | - >::template elif< |
44 | | - (sizeof(c3) == size) |
45 | | - , c3 |
46 | | - >::template elif< |
47 | | - (sizeof(c4) == size) |
48 | | - , c4 |
49 | | - >::template else_<void*>::type type; |
50 | | -#endif |
51 | 35 | }; |
52 | 36 |
|
53 | 37 | int main() |
|