/*
*******************************************************************************
-* Copyright (C) 2007, International Business Machines Corporation and *
-* others. All Rights Reserved. *
+* Copyright (C) 2007-2012, International Business Machines Corporation and
+* others. All Rights Reserved.
*******************************************************************************
*/
+#include "utypeinfo.h" // for 'typeid' to work
+
#include "unicode/utypes.h"
#if !UCONFIG_NO_FORMATTING
UBool
DateTimeRule::operator==(const DateTimeRule& that) const {
return ((this == &that) ||
- (getDynamicClassID() == that.getDynamicClassID() &&
+ (typeid(*this) == typeid(that) &&
fMonth == that.fMonth &&
fDayOfMonth == that.fDayOfMonth &&
fDayOfWeek == that.fDayOfWeek &&