/*
**********************************************************************
-* Copyright (c) 2004-2008, International Business Machines
+* Copyright (c) 2004-2010, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* Author: Alan Liu
* Since: ICU 3.0
**********************************************************************
*/
+#include <typeinfo> // for 'typeid' to work
+
#include "unicode/utypes.h"
#if !UCONFIG_NO_FORMATTING
UBool Measure::operator==(const UObject& other) const {
const Measure* m = (const Measure*) &other;
- return getDynamicClassID() == other.getDynamicClassID() &&
+ return typeid(*this) == typeid(other) &&
number == m->getNumber() &&
(unit != NULL && *unit == m->getUnit());
}