Opened 19 years ago
Closed 17 years ago
#235 closed Bugs (None)
mpl::less<> doesn't compile
| Reported by: | egladysh | Owned by: | Aleksey Gurtovoy |
|---|---|---|---|
| Milestone: | Component: | None | |
| Version: | None | Severity: | |
| Keywords: | Cc: |
Description
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
Change History (2)
comment:2 by , 17 years ago
| Status: | assigned → closed |
|---|
Logged In: YES user_id=123251 Fixed in 1.32 release
Note:
See TracTickets
for help on using tickets.
