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

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


3
0
Sign in
to vote
ID 596771 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 9/10/2010 4:32:01 AM
Access Restriction Public

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!
Sign in to post a comment.
Posted by Stephan [MSFT] 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