File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed
include/boost/python/object Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change 99# include < boost/python/has_back_reference.hpp>
1010# include < boost/python/detail/not_specified.hpp>
1111# include < boost/python/detail/pointee.hpp>
12- # include < boost/python/detail/if_else.hpp>
1312# include < boost/python/object/value_holder.hpp>
1413# include < boost/python/object/pointer_holder.hpp>
1514# include < boost/type.hpp>
1615# include < boost/mpl/select_type.hpp>
16+ # include < boost/type_traits/same_traits.hpp>
1717
1818namespace boost { namespace python { namespace objects {
1919
Original file line number Diff line number Diff line change 1515template <unsigned size>
1616struct choose
1717{
18- #if 1
1918 typedef typename boost::python::detail::if_<
2019 (sizeof (c1) == size)
2120 >::template then<
@@ -33,21 +32,6 @@ struct choose
3332 >::template then<
3433 c4
3534 >::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
5135};
5236
5337int main ()
You can’t perform that action at this time.
0 commit comments