mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-05 13:35:32 +00:00
ICU-20973 Delete unnecessary deprecated TimeUnitFormat::operator!=().
An operator!=() is already defined by a base class so this class doesn't need to define it again and not doing so avoids a C++20 ambiguity. This simplifies the code.
This commit is contained in:
parent
126af02948
commit
51c11da869
1 changed files with 0 additions and 22 deletions
|
@ -134,23 +134,6 @@ public:
|
|||
*/
|
||||
TimeUnitFormat& operator=(const TimeUnitFormat& other);
|
||||
|
||||
/**
|
||||
* Return true if the given Format objects are not semantically equal.
|
||||
* Objects of different subclasses are considered unequal.
|
||||
* @param other the object to be compared with.
|
||||
* @return true if the given Format objects are not semantically equal.
|
||||
* @deprecated ICU 53
|
||||
*/
|
||||
bool operator!=(const Format& other) const;
|
||||
|
||||
#if defined(__cpp_impl_three_way_comparison) && \
|
||||
__cpp_impl_three_way_comparison >= 201711
|
||||
// Manually resolve C++20 reversed argument order ambiguity.
|
||||
inline bool operator!=(const TimeUnitFormat& other) const {
|
||||
return operator!=(static_cast<const Format&>(other));
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Set the locale used for formatting or parsing.
|
||||
* @param locale the locale to be set
|
||||
|
@ -244,11 +227,6 @@ private:
|
|||
friend struct TimeUnitFormatReadSink;
|
||||
};
|
||||
|
||||
inline bool
|
||||
TimeUnitFormat::operator!=(const Format& other) const {
|
||||
return !operator==(other);
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
||||
#endif /* U_HIDE_DEPRECATED_API */
|
||||
|
|
Loading…
Add table
Reference in a new issue