Opened 21 years ago

Closed 19 years ago

#31 closed Bugs (Wont Fix)

integer.hpp with MSVC 7 beta 2

Reported by: nobody Owned by: bjorn_karlsson
Milestone: Component: None
Version: None Severity:
Keywords: Cc:

Description

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<Bits>' 
being compiled
        with
        [
            Bits=_STL::digits
        ]
        \Stl\boost\crc.hpp(351) : see reference to 
class template 
instantiation 'boost::detail::high_uint_t<Bits>' being 
compiled
        with
        [
            Bits=_STL::digits
        ]
\Stl\boost\integer.hpp(73) : error C2039: 'least' : is 
not a member of 'boost::int_least_helper<Category>'
        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

Change History (1)

comment:1 by bjorn_karlsson, 19 years ago

Status: assignedclosed
Logged In: YES 
user_id=536454

Works fine with the current version of Visual Studio.
Note: See TracTickets for help on using tickets.