Opened 15 years ago
Last modified 13 years ago
#1179 closed Bugs
[boost.python] can not export a union in VC2005sp1 — at Initial Version
Reported by: | Owned by: | Dave Abrahams | |
---|---|---|---|
Milestone: | Boost 1.36.0 | Component: | python USE GITHUB |
Version: | Boost 1.34.0 | Severity: | Problem |
Keywords: | python export union | Cc: |
Description
Visual V++ 2005(8.0) sp1, union not is_class. because there is BOOST_STATIC_ASSERT(is_class<T>::value) in make_instance_impl can not export union. eg, class_<union my_u> can not return_internal_reference<> when not is_class, eg, return char*, char&, union u& delete BOOST_STATIC_ASSERT(is_class<T>::value); of make_instance_impl, then compile OK, and work not all OK boost/python/object/make_instance.hpp template <class T, class Holder, class Derived> struct make_instance_impl {
typedef objects::instance<Holder> instance_t;
template <class Arg> static inline PyObject* execute(Arg& x) {