On Jan 23, 2008 10:28 PM, Andrea <mariofutire@xxxxxxxxxxxxxx> wrote:
> I've run into the problem of registering a shared_ptr<const T>.
> I've found a workaround using a const_cast in get_pointer.
> I've also read that there exist a patch to implement a proper fix.
> Unfortunately I cannot find more details on that.
Read this thread:
> Could someone please quick list pros and cons of both approaches.
> I am a bit uncomfortable about const_casting, but I cannot understand if it
> is just a way to please
> the compiler or something deeper.
I attach the original patch
C++ Python language binding
Description: Text Data
C++-sig mailing list