Change-Id: Ic40ab0752eebbc33f13d1cd7c6f0d14ac424d8c6
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
template<typename T>
inline bool operator<(std::nullptr_t lhs, IntrusivePtr<T> const& rhs)
{
- return nullptr < rhs.Get();
+ // Do not use less operator with nullptr. It will make compile error over gcc-14.
+ return nullptr != rhs.Get();
}
/**
template<typename T>
inline bool operator<(IntrusivePtr<T> const& lhs, std::nullptr_t rhs)
{
- return lhs.Get() < nullptr;
+ // Do not use less operator with nullptr. It will make compile error over gcc-14.
+ return false;
}
/**