/*
******************************************************************************
-* Copyright (C) 1998-2007, International Business Machines Corporation and *
-* others. All Rights Reserved. *
+* Copyright (C) 1998-2012, International Business Machines Corporation and
+* others. All Rights Reserved.
******************************************************************************
*
* File schriter.cpp
******************************************************************************
*/
+#include "utypeinfo.h" // for 'typeid' to work
+
#include "unicode/chariter.h"
#include "unicode/schriter.h"
// because that checks for array pointer equality
// while we compare UnicodeString objects
- if (getDynamicClassID() != that.getDynamicClassID()) {
+ if (typeid(*this) != typeid(that)) {
return FALSE;
}