Boost logo

Boost :

From: (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:

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
\notus_traits\winobj.cpp(150) : fatal error C1903:
unable to recover from previous error(s); stopping

If I change

        msvc71_wknd_ = ( BOOST_MPL_AUX_VALUE_WKND
                        < BOOST_MPL_AUX_VALUE_WKND
(T2)::value )


        msvc71_wknd_ = BOOST_MPL_AUX_VALUE_WKND
                        < BOOST_MPL_AUX_VALUE_WKND

everything works. Somehow the parentheses break the



You can respond by visiting:

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.
Boost-bugs mailing list

Boost list run by bdawes at, gregod at, cpdaniel at, john at