| Subject: | [C++-sig] Best way to register shared_ptr<const T> |
|---|---|
| From: | Andrea |
| Date: | Wed, 23 Jan 2008 20:28:56 +0000 |
| Newsgroups: | gmane.comp.python.c++ |
Hi, 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. 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. Andrea _______________________________________________ C++-sig mailing list C++-sig@xxxxxxxxxx http://mail.python.org/mailman/listinfo/c++-sig |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [C++-sig] trouble with boost.python build (blame boost-1_34_1/boost/function/function_template.hpp?), Matthew O'Meara |
|---|---|
| Next by Date: | Re: [C++-sig] Custom smart pointer with same behaviour as shared_ptr, Andrea |
| Previous by Thread: | [C++-sig] reducer class member funciton, Chang Chen |
| Next by Thread: | Re: [C++-sig] Best way to register shared_ptr<const T>, Roman Yakovenko |
| Indexes: | [Date] [Thread] [Top] [All Lists] |