Boost logo

Boost :

From: rwgk_at_[hidden]
Date: 2001-07-15 06:11:21


A while ago Nick Sauter posted patches for Boost.Python to enable
support for Python 2.1 Rich Comparisons:

http://groups.yahoo.com/group/boost/message/12147

To integrate Nick's patches, I have created a new CVS branch

    boost_python_richcmp

in the directories root/boost/boost/python and root/boost/libs/python.
The code in this branch is tested with:

    Python 1.5.2:
      vc60.mak
      mingw32.mak
      linux_gcc.mak
      tru64_cxx.mak
      irix_CC.mak

    Python 2.1:
      linux_gcc.mak
      tru64_cxx.mak
      irix_CC.mak

    Python 2.1.1c1:
      vc60.mak

Everything is fine, except for the vc60 warning messages that are
attached. I had similar messages before with my application code.
Therefore I believe that the messages below have nothing to do with
the
Rich Comparison patches. The warnings that I got when compiling my
application never bothered me too much, but it does not look good if
the examples that come with the package generate warnings. What I do
not understand is why comprehensive.cpp does not generate similar
warnings. Is there a trick that I do not know about? What do people
think about using pragmas to get rid of the warnings?

Feedback is appreciated. I hope to be able to merge the modifications
into the trunk before the next Boost release.

Ralf

        cl.exe /I"C:\rwgk\richcmp\boost" /I"C:\Python21\include"
        /nologo /MD /GR /GX /Zm200 /c richcmp.cpp
richcmp.cpp
C:\rwgk\richcmp\boost\boost/python/operators.hpp(80) : warning C4042:
'which' : has bad storage class
        richcmp.cpp(205) : see reference to class template
        instantiation 'boost::python::operators<15,struct
        boost::python::detail::auto_operand>' being compiled
richcmp.cpp(207) : warning C4042: 'which' : has bad storage class
richcmp.cpp(209) : warning C4042: 'which' : has bad storage class
richcmp.cpp(211) : warning C4042: 'which' : has bad storage class
C:\rwgk\richcmp\boost\boost/python/operators.hpp(80) : warning C4042:
'which' : has bad storage class
        richcmp.cpp(213) : see reference to class template
instantiation
        'boost::python::operators<132120576,
        struct boost::python::detail::auto_operand>' being compiled
richcmp.cpp(215) : warning C4042: 'which' : has bad storage class
richcmp.cpp(218) : warning C4042: 'which' : has bad storage class
richcmp.cpp(225) : warning C4042: 'which' : has bad storage class
richcmp.cpp(227) : warning C4042: 'which' : has bad storage class
richcmp.cpp(229) : warning C4042: 'which' : has bad storage class
richcmp.cpp(233) : warning C4042: 'which' : has bad storage class
richcmp.cpp(236) : warning C4042: 'which' : has bad storage class


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk