diff --git a/pxr/usd/sdf/payload.h b/pxr/usd/sdf/payload.h index f0f7c2d04a..b30616c4f3 100644 --- a/pxr/usd/sdf/payload.h +++ b/pxr/usd/sdf/payload.h @@ -33,8 +33,6 @@ #include "pxr/usd/sdf/path.h" #include "pxr/base/tf/hash.h" -#include - #include #include #include @@ -57,7 +55,7 @@ typedef std::vector SdfPayloadVector; /// system behaviors will not traverse across, providing a user-visible /// way to manage the working set of the scene. /// -class SdfPayload : boost::totally_ordered { +class SdfPayload { public: /// Create a payload. See SdfAssetPath for what characters are valid in \p /// assetPath. If \p assetPath contains invalid characters, issue an error @@ -107,10 +105,30 @@ class SdfPayload : boost::totally_ordered { /// Returns whether this payload equals \a rhs. SDF_API bool operator==(const SdfPayload &rhs) const; + /// \sa SdfPayload::operator== + bool operator!=(const SdfPayload& rhs) const { + return !(*this == rhs); + } + /// Returns whether this payload is less than \a rhs. /// The meaning of less than is arbitrary but stable. SDF_API bool operator<(const SdfPayload &rhs) const; + /// \sa SdfPayload::operator< + bool operator>(const SdfPayload& rhs) const { + return rhs < *this; + } + + /// \sa SdfPayload::operator< + bool operator<=(const SdfPayload& rhs) const { + return !(rhs < *this); + } + + /// \sa SdfPayload::operator< + bool operator>=(const SdfPayload& rhs) const { + return !(*this < rhs); + } + private: friend inline size_t hash_value(const SdfPayload &p) { return TfHash::Combine(