Re: [C++-sig] Inner class name

2013-06-04 Thread Jim Bosch
On 06/04/2013 01:12 PM, John Reid wrote: Inner classes seem to be given the wrong name or perhaps this is by design. Could someone enlighten me? If I do: namespace py = boost::python; py::class_< T > outer( "Outer" ); py::scope( outer ); py::class_< U > inner( "Inner" ); then in python: import

[C++-sig] Inner class name

2013-06-04 Thread John Reid
Inner classes seem to be given the wrong name or perhaps this is by design. Could someone enlighten me? If I do: namespace py = boost::python; py::class_< T > outer( "Outer" ); py::scope( outer ); py::class_< U > inner( "Inner" ); then in python: import module as M print M.Outer.Inner gives "M.

[C++-sig] Heap error with pyqt code embedded using boost python

2013-06-04 Thread Sebastian Herbord
Hi, hope this is an adequate mailing list for this quesion, appologies in advance if not. I'm trying to embed python into a C++/Qt application using boost python. This works pretty well except the whole program crashes when a pyqt slot is invoked that takes a QString as its parameter. This is a m