kernel/eka/compsupp/rvct3_1/type_info.cpp
changeset 43 96e5fb8b040d
child 44 36bfc973b146
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/kernel/eka/compsupp/rvct3_1/type_info.cpp	Thu Dec 17 09:24:54 2009 +0200
@@ -0,0 +1,44 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: 
+*
+*/
+
+
+#include <typeinfo>
+
+EXPORT_C bool std::type_info::operator==(const std::type_info& rhs) const
+	{
+	if (this == &rhs)
+		{
+		return true;
+		}
+
+	const char* s1 = this->name();
+	const char* s2 = rhs.name();
+
+	while ( *s1 == *s2 && *s1 != '\0' )
+		{
+		s1++;
+		s2++;
+		}
+
+	return ( *s1 == '\0' && *s2 == '\0' );
+	}
+
+EXPORT_C bool std::type_info::operator!=(const std::type_info& rhs) const
+	{
+	return !(*this == rhs);
+	}
+