Boost logo

Boost :

From: SourceForge.net (noreply_at_[hidden])
Date: 2004-02-06 02:30:37


Bugs item #891611, was opened at 2004-02-05 23:30
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=891611&group_id=7586

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Eugene (egladysh)
Assigned to: Nobody/Anonymous (nobody)
Summary: mpl::less<> doesn't compile

Initial Comment:
First of all, congratulations with v1.31!

I am having a weird problem when compiling
mpl/less.hpp in MSVC 7.1

The error message is:
s:\boost\boost_1_31_0\boost\mpl\less.hpp(39) : error
C2760: syntax error : expected ',' not ';'
        s:\boost\boost_1_31_0\boost\mpl\less.hpp(51) :
see reference to class template
instantiation 'boost::mpl::less<T1,T2>' being compiled
s:\boost\boost_1_31_0\boost\mpl\less.hpp(39) : error
C2144: syntax error : 'const bool' should be preceded
by '}'
s:\boost\boost_1_31_0\boost\mpl\less.hpp(39) : error
C2062: type 'const bool' unexpected
s:\boost\boost_1_31_0\boost\mpl\less.hpp(39) : error
C2238: unexpected token(s) preceding ';'
s:\boost\boost_1_31_0\boost\mpl\less.hpp(42) : error
C2065: 'value' : undeclared identifier
s:\Projects\notus\notus\libs\src\platform\win32
\notus_traits\winobj.cpp(150) : fatal error C1903:
unable to recover from previous error(s); stopping
compilation
*****************

If I change

    enum
    {
        msvc71_wknd_ = ( BOOST_MPL_AUX_VALUE_WKND
(T1)::value
                        < BOOST_MPL_AUX_VALUE_WKND
(T2)::value )
    };

to

    enum
    {
        msvc71_wknd_ = BOOST_MPL_AUX_VALUE_WKND
(T1)::value
                        < BOOST_MPL_AUX_VALUE_WKND
(T2)::value
    };

everything works. Somehow the parentheses break the
compiler.

Eugene

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=891611&group_id=7586

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


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