|
Re: Attempted a typeid of NULL pointer!: msg#00361python.c++
"Marcelo A. Camelo" <camelo@xxxxxxxxxxx> writes: > 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? Boost Version? CVS? Code for reproducing the problem? -- Dave Abrahams Boost Consulting www.boost-consulting.com |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Custom exceptions: 00361, Gavin Doughtie |
|---|---|
| Next by Date: | Re: Re: Attempted a typeid of NULL pointer!: 00361, Baptiste Lepilleur |
| Previous by Thread: | Attempted a typeid of NULL pointer!i: 00361, Marcelo A. Camelo |
| Next by Thread: | Re: Re: Attempted a typeid of NULL pointer!: 00361, Baptiste Lepilleur |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |