/*
******************************************************************************
-* Copyright (C) 1998-2001, International Business Machines Corporation and *
-* others. All Rights Reserved. *
+* Copyright (C) 1998-2010, International Business Machines Corporation and
+* others. All Rights Reserved.
******************************************************************************
*/
+#include <typeinfo> // for 'typeid' to work
+
#include "unicode/uchriter.h"
#include "unicode/ustring.h"
#include "uhash.h"
U_NAMESPACE_BEGIN
-const char UCharCharacterIterator::fgClassID = 0;
+UOBJECT_DEFINE_RTTI_IMPLEMENTATION(UCharCharacterIterator)
UCharCharacterIterator::UCharCharacterIterator()
: CharacterIterator(),
if (this == &that) {
return TRUE;
}
-
- if (getDynamicClassID() != that.getDynamicClassID()) {
+ if (typeid(*this) != typeid(that)) {
return FALSE;
}