Re: [Boost-bugs] [Boost C++ Libraries] #1179: [boost.python] can not export a union in VC2005sp1

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1179: [boost.python] can not export a union in VC2005sp1
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-28 16:37:41


#1179: [boost.python] can not export a union in VC2005sp1
-------------------------------------------+--------------------------------
  Reporter: qiaozhiqiang@… | Owner: dave
      Type: Bugs | Status: closed
 Milestone: Boost 1.36.0 | Component: Python
   Version: Boost 1.34.0 | Severity: Problem
Resolution: invalid | Keywords: python export union
-------------------------------------------+--------------------------------
Changes (by dave):

  * status: assigned => closed
  * resolution: => invalid

Comment:

 I'm sorry; I don't know what sort of fix I had in mind, but this code
 ''couldn't'' compile as given, even if Boost.Python were changed as
 requested.

  1. There are several syntax errors.

  2. You can only {{{return_internal_reference<>}}} to a wrapped class
 type, not a char; don't forget, char gets translated into a Python string
 and Python strings are immutable.

  3. You're using {{{copy_non_const_reference}}} on a pointer to char,
  but it intentionally only works on a pointer to reference.

 If you can give me an example that doesn't try to do things that are
 intentionally illegal (other than wrapping a union for Python) then I
 might be able to try to make this work. Otherwise, closing as invalid.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/1179#comment:3>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC