Home Dashboard Directory Help
Search

type_info::before returns type of int and not bool by Martin Richter


Status: 

Closed
 as Fixed Help for as Fixed


3
0
Sign in
to vote
Type: Bug
ID: 596771
Opened: 9/10/2010 4:32:01 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

The function type_info::before returns type int.
The standard http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1905.pdf defines tis function in the class type_info as bool!
Details
Sign in to post a comment.
Posted by Microsoft on 10/31/2010 at 10:27 PM
Hi,

Thanks for reporting this bug. We've fixed it, so that type_info::before() returns bool as required by C++98/03 and C++0x, and the fix will be available in VC11.

If you have any further questions, feel free to E-mail me at stl@microsoft.com .

Stephan T. Lavavej
Visual C++ Libraries Developer
Posted by Martin Richter on 9/10/2010 at 9:33 AM
See Chapter 18.5.1, page 406 in the working draft Standard
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1905.pdf
Sign in to post a workaround.