stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r384365 - /incubator/stdcxx/trunk/etc/config/src/STD_BAD_TYPEID.cpp
Date Wed, 08 Mar 2006 22:58:44 GMT
Author: sebor
Date: Wed Mar  8 14:58:42 2006
New Revision: 384365

URL: http://svn.apache.org/viewcvs?rev=384365&view=rev
Log:
2006-03-08  Martin Sebor  <sebor@roguewave.com>

	* STD_BAD_TYPEID.cpp (type_info): Defined class when the header
	<typeinfo> (or <typeinfo.h> is not available to avoid false
	negatives (such as with Intel C++ on Linux).

Modified:
    incubator/stdcxx/trunk/etc/config/src/STD_BAD_TYPEID.cpp

Modified: incubator/stdcxx/trunk/etc/config/src/STD_BAD_TYPEID.cpp
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/etc/config/src/STD_BAD_TYPEID.cpp?rev=384365&r1=384364&r2=384365&view=diff
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/STD_BAD_TYPEID.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/STD_BAD_TYPEID.cpp Wed Mar  8 14:58:42 2006
@@ -11,9 +11,12 @@
 #    include <typeinfo.h>
 #  else
 
-// using typeid() without #including <typeinfo> first
-// yields undefined behavior...
+// 5.2.8, p6 [expr.typeid]:
+// If the header <typeinfo> is not included prior to a use of typeid,
+// the program is ill-formed.
 namespace std {
+
+class type_info { };
 
 class bad_typeid { };
 



Mime
View raw message