Boost C++ Libraries: Ticket #235: mpl::less<> doesn't compile https://svn.boost.org/trac10/ticket/235 <pre class="wiki">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&lt;T1,T2&gt;' 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 &lt; BOOST_MPL_AUX_VALUE_WKND (T2)::value ) }; to enum { msvc71_wknd_ = BOOST_MPL_AUX_VALUE_WKND (T1)::value &lt; BOOST_MPL_AUX_VALUE_WKND (T2)::value }; everything works. Somehow the parentheses break the compiler. Eugene </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/235 Trac 1.4.3 nobody Wed, 13 Apr 2005 15:15:16 GMT <link>https://svn.boost.org/trac10/ticket/235#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/235#comment:1</guid> <description> <pre class="wiki">Logged In: NO It is extrange but it hapens to me only in my job's computer, but in my home it works fine. In both places I use VC++7.1 DJG </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Aleksey Gurtovoy</dc:creator> <pubDate>Mon, 10 Oct 2005 05:40:01 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/235#comment:2 https://svn.boost.org/trac10/ticket/235#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=123251 Fixed in 1.32 release </pre> Ticket