logo       

wrong semantics in boost/python/cast.hpp?: msg#00284

python.c++

Subject: wrong semantics in boost/python/cast.hpp?

When removing the "-w" option from the compilation command under Mac OS 10 the
g++ 3.3 compiler spits out the warning that is attached below. What do we think
about this?
Thanks,
Ralf

Compilation command:

g++ -fPIC -ftemplate-depth-120 -DNDEBUG -O3 -DBOOST_PYTHON_MAX_BASES=2
-DBOOST_PYTHON_SOURCE -I/net_coral/scratch1/rwgk/bug/scitbx_2003_05_26/boost
-I/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -c -o
boost/libs/python/src/converter/arg_to_python_base.os
/net_coral/scratch1/rwgk/bug/scitbx_2003_05_26/boost/libs/python/src/converter/arg_to_python_base.cpp

Warning message:

BD Software STL Message Decryptor v2.35 for gcc
/net_coral/scratch1/rwgk/bug/scitbx_2003_05_26/boost/boost/python/cast.hpp: In
function
`Target * boost::python::detail::upcast_impl(Source *, Target *) [with
Source = PyObject,
Target = PyObject]':
/net_coral/scratch1/rwgk/bug/scitbx_2003_05_26/boost/boost/python/cast.hpp:92:
instantiated from
`PyObject * boost::python::upcast(PyObject *, PyObject *)'
/net_coral/scratch1/rwgk/bug/scitbx_2003_05_26/boost/boost/python/refcount.hpp:
37: instantiated from `void boost::python::xdecref(PyObject *)'
/net_coral/scratch1/rwgk/bug/scitbx_2003_05_26/boost/boost/python/handle.hpp:188
: instantiated from `boost::python::handle<PyObject>::~handle()'
/net_coral/scratch1/rwgk/bug/scitbx_2003_05_26/boost/libs/python/src/converter/
arg_to_python_base.cpp:25: instantiated from here
/net_coral/scratch1/rwgk/bug/scitbx_2003_05_26/boost/boost/python/cast.hpp:81:
warning: sorry:
semantics of inline function static data `const bool same' are wrong (
you'll
wind up with multiple copies)
/net_coral/scratch1/rwgk/bug/scitbx_2003_05_26/boost/boost/python/cast.hpp:81:
warning:
you can work around this by removing the initializer


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise