|
Attempted a typeid of NULL pointer!: msg#00359python.c++
Hi! A simple one: I'm trying to wrap a function that returns a shared_ptr of a wrapped type (this type has been wrapped with shared_ptr as its held_type). Everything goes fine as long as the shared_ptr holds a valid pointer. If its value is NULL (which is a valid value within the wrapped C++ context), it raises the following exception: RuntimeError: Attempted a typeid of NULL pointer! Shouldn't it return None? Marcelo A. Camelo, M. Eng. - Project Leader ESSS - Engineering Simulation and Scientific Software E-mail: camelo@xxxxxxxxxxx Phone: +55-48-239-2226 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: missing boost::ref in pyste generated code?: 00359, Nicodemus |
|---|---|
| Next by Date: | Custom exceptions: 00359, Gavin Doughtie |
| Previous by Thread: | Re: Re: custom less than operator? to_python_converter for multiple destination types?i: 00359, Gavin Doughtie |
| Next by Thread: | Re: Attempted a typeid of NULL pointer!: 00359, David Abrahams |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |