Boost C++ Libraries: Ticket #31: integer.hpp with MSVC 7 beta 2 https://svn.boost.org/trac10/ticket/31 <pre class="wiki">An attempt to compile a file that includes crc.hpp causes the following error in integer.hpp: \Stl\boost\integer.hpp(73) : error C2975: 'Category' : invalid template argument for 'boost::int_least_helper', constant expression expected \Stl\boost\integer.hpp(32) : see declaration of 'Category' \Stl\boost\crc.hpp(278) : see reference to class template instantiation 'boost::uint_t&lt;Bits&gt;' being compiled with [ Bits=_STL::digits ] \Stl\boost\crc.hpp(351) : see reference to class template instantiation 'boost::detail::high_uint_t&lt;Bits&gt;' being compiled with [ Bits=_STL::digits ] \Stl\boost\integer.hpp(73) : error C2039: 'least' : is not a member of 'boost::int_least_helper&lt;Category&gt;' with [ Category=0 ] \Stl\boost\integer.hpp(73) : fatal error C1507: previous user errors and subsequent error recovery halt further compilation Defining BOOST_NO_LIMITS in user.hpp helps, so obviously this is a case where a bug in in-class member initialization is triggered by a header file shipped with the compiler. You are obviously in a better position to file this problem with Micro$oft than I am. Regards, Max Motovilov </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/31 Trac 1.4.3 bjorn_karlsson Wed, 18 Feb 2004 11:32:35 GMT status changed https://svn.boost.org/trac10/ticket/31#comment:1 https://svn.boost.org/trac10/ticket/31#comment:1 <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=536454 Works fine with the current version of Visual Studio. </pre> Ticket