Boost logo

Boost-Commit :

From: rwgk_at_[hidden]
Date: 2007-11-04 13:08:29


Author: rwgk
Date: 2007-11-04 13:08:28 EST (Sun, 04 Nov 2007)
New Revision: 40749
URL: http://svn.boost.org/trac/boost/changeset/40749

Log:
reinterpret_cast -> const_cast; commented out dead code removed
Text files modified:
   trunk/libs/python/src/object/function.cpp | 7 ++-----
   1 files changed, 2 insertions(+), 5 deletions(-)

Modified: trunk/libs/python/src/object/function.cpp
==============================================================================
--- trunk/libs/python/src/object/function.cpp (original)
+++ trunk/libs/python/src/object/function.cpp 2007-11-04 13:08:28 EST (Sun, 04 Nov 2007)
@@ -536,17 +536,14 @@
 
     if (docstring_options::show_py_signatures_)
     {
- _doc += str(reinterpret_cast<const char*>(detail::py_signature_tag));
+ _doc += str(const_cast<const char*>(detail::py_signature_tag));
     }
     if (doc != 0 && docstring_options::show_user_defined_)
         _doc += doc;
 
     if (docstring_options::show_cpp_signatures_)
     {
-// if(len(_doc))
-// _doc += "\n"+str(reinterpret_cast<const char*>(detail::cpp_signature_tag));
-// else
- _doc += str(reinterpret_cast<const char*>(detail::cpp_signature_tag));
+ _doc += str(const_cast<const char*>(detail::cpp_signature_tag));
     }
     if(_doc)
     {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk