Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-06-16 16:29:59


From: "Paul Mensonides" <pmenso57_at_[hidden]>
>
> That should fix the problem.
>
> You have to give the preprocessor time to think of the result of
> BOOST_PP_TUPLE_ELEM_EX.. as a argument list rather than an 'item'.
>
> But the above fixes the problem on both VC++ and Comeau C++.
>
> Paul Mensonides

What Vesa checked in didn't work for me.
With the mpl-development branch of boost/mpl and the rest on the HEAD, I
did this from libs/python/test:

    CALL "c:\tools\msvc6\vc98\bin\VCVARS32.BAT" >nul
    "c:\tools\msvc6\vc98\bin\cl"
/Zm400 -nologo -GX -c -DBOOST_DEBUG_PYTHON -D_DEBUG -DBOOST_PYTHON_DYNAMIC
_LIB -DBOOST_PYTHON_V2 -DBOOST_PYTHON_SOURCE /Z7 /Od /Ob0 /GX /GR
Dd -I"c:\build\libs\python" -I"..\..\..\libs\python" -I"z:\boost" -I"c:\
tools\python-2.2.1\include" -I"c:\tools\python-2.2.1\PC" -Fo"c:\build\lib
s\python\bin\bpl.dll\msvc\debug-python\runtime-link-dynamic\from_python.obj
" -Tp"..\..\..\libs\python\src/converter\from_python.cpp"

z:\boost\boost/python/converter/from_python_data.hpp(65) : error C2061:
syntax error : identifier 'BOOST_PP_TUPLE2_EAT'
        z:\boost\boost/python/converter/from_python_data.hpp(68) : see
reference to class template instantiation
'boost::python::converter::detail::lower_size<target>' being compiled
z:\boost\boost/python/converter/from_python_data.hpp(65) : error C2059:
syntax error : 'constant'
        z:\boost\boost/python/converter/from_python_data.hpp(68) : see
reference to class template instantiation
'boost::python::converter::detail::lower_size<target>' being compiled
z:\boost\boost/python/converter/from_python_data.hpp(65) : error C2091:
function returns function
        z:\boost\boost/python/converter/from_python_data.hpp(68) : see
reference to class template instantiation
'boost::python::converter::detail::lower_size<target>' being compiled
z:\boost\boost/python/converter/from_python_data.hpp(65) : error C2146:
syntax error : missing ';' before identifier 'BOOST_PP_IFBOOST_PP_BOOL1'
        z:\boost\boost/python/converter/from_python_data.hpp(68) : see
reference to class template instantiation
'boost::python::converter::detail::lower_size<target>' being compiled
z:\boost\boost/python/converter/from_python_data.hpp(65) : error C2501:
'BOOST_PP_IFBOOST_PP_BOOL1' : missing storage-class or type specifiers
        z:\boost\boost/python/converter/from_python_data.hpp(68) : see
reference to class template instantiation
'boost::python::converter::detail::lower_size<target>' being compiled
z:\boost\boost/python/converter/from_python_data.hpp(65) : error C2061:
syntax error : identifier 'BOOST_PP_TUPLE4_EAT'
        z:\boost\boost/python/converter/from_python_data.hpp(68) : see
reference to class template instantiation
'boost::python::converter::detail::lower_size<target>' being compiled
z:\boost\boost/python/converter/from_python_data.hpp(65) : error C2059:
syntax error : '('
        z:\boost\boost/python/converter/from_python_data.hpp(68) : see
reference to class template instantiation
'boost::python::converter::detail::lower_size<target>' being compiled
z:\boost\boost/python/converter/from_python_data.hpp(65) : error C2091:
function returns function
        z:\boost\boost/python/converter/from_python_data.hpp(68) : see
reference to class template instantiation
'boost::python::converter::detail::lower_size<target>' being compiled
z:\boost\boost/python/converter/from_python_data.hpp(65) : error C2501:
'BOOST_PP_IFBOOST_PP_BOOL1' : missing storage-class or type specifiers
        z:\boost\boost/python/converter/from_python_data.hpp(68) : see
reference to class template instantiation
'boost::python::converter::detail::lower_size<target>' being compiled
z:\boost\boost/python/converter/from_python_data.hpp(65) : error C2535:
'int (__cdecl *__thiscall
boost::python::converter::detail::lower_size<target>::BOOST_PP_IFBOOST_PP_B
OOL1(void))(void)' : member function already defined or declared
        z:\boost\boost/python/converter/from_python_data.hpp(65) : see
declaration of 'BOOST_PP_IFBOOST_PP_BOOL1'
        z:\boost\boost/python/converter/from_python_data.hpp(68) : see
reference to class template instantiation
'boost::python::converter::detail::lower_size<target>' being compiled
z:\boost\boost/python/converter/from_python_data.hpp(65) : error C2501:
'BOOST_PP_LIST_FOR_EACH_I_P' : missing storage-class or type specifiers
        z:\boost\boost/python/converter/from_python_data.hpp(68) : see
reference to class template instantiation
'boost::python::converter::detail::lower_size<target>' being compiled
z:\boost\boost/python/converter/from_python_data.hpp(65) : error C2501:
'BOOST_PP_LIST_FOR_EACH_I_O' : missing storage-class or type specifiers
        z:\boost\boost/python/converter/from_python_data.hpp(68) : see
reference to class template instantiation
'boost::python::converter::detail::lower_size<target>' being compiled
z:\boost\boost/python/converter/from_python_data.hpp(65) : error C2501:
'BOOST_PP_LIST_FOR_EACH_I_M' : missing storage-class or type specifiers
        z:\boost\boost/python/converter/from_python_data.hpp(68) : see
reference to class template instantiation
'boost::python::converter::detail::lower_size<target>' being compiled
z:\boost\boost/python/converter/from_python_data.hpp(65) : error C2143:
syntax error : missing ';' before ')'
        z:\boost\boost/python/converter/from_python_data.hpp(68) : see
reference to class template instantiation
'boost::python::converter::detail::lower_size<target>' being compiled
z:\boost\boost/python/converter/from_python_data.hpp(68) : error C2143:
syntax error : missing ';' before '}'
        z:\boost\boost/python/converter/from_python_data.hpp(68) : see
reference to class template instantiation
'boost::python::converter::detail::lower_size<target>' being compiled
z:\boost\boost/python/converter/from_python_data.hpp(68) : error C2238:
unexpected token(s) preceding ';'
        z:\boost\boost/python/converter/from_python_data.hpp(68) : see
reference to class template instantiation
'boost::python::converter::detail::lower_size<target>' being compiled
...


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