diff --git a/pxr/base/tf/scopeDescription.cpp b/pxr/base/tf/scopeDescription.cpp index 8d25db1bd4..2450388c0a 100644 --- a/pxr/base/tf/scopeDescription.cpp +++ b/pxr/base/tf/scopeDescription.cpp @@ -379,7 +379,7 @@ TfScopeDescription::SetDescription(std::string const &msg) tbb::spin_mutex::scoped_lock lock(stack.mutex); _description = msg.c_str(); } - _ownedString = boost::none; + _ownedString = std::nullopt; } void @@ -399,7 +399,7 @@ TfScopeDescription::SetDescription(char const *msg) tbb::spin_mutex::scoped_lock lock(stack.mutex); _description = msg; } - _ownedString = boost::none; + _ownedString = std::nullopt; } static diff --git a/pxr/base/tf/scopeDescription.h b/pxr/base/tf/scopeDescription.h index 908f2b4086..20aa42786a 100644 --- a/pxr/base/tf/scopeDescription.h +++ b/pxr/base/tf/scopeDescription.h @@ -30,8 +30,7 @@ #include "pxr/base/tf/stringUtils.h" #include "pxr/base/tf/api.h" -#include - +#include #include #include @@ -109,7 +108,7 @@ class TfScopeDescription inline void _Push(); inline void _Pop() const; - boost::optional _ownedString; + std::optional _ownedString; char const *_description; TfCallContext _context; void *_localStack; diff --git a/pxr/base/tf/type.cpp b/pxr/base/tf/type.cpp index 896193d972..8533ad6c77 100644 --- a/pxr/base/tf/type.cpp +++ b/pxr/base/tf/type.cpp @@ -51,13 +51,12 @@ #include "pxr/base/tf/pyUtils.h" #endif // PXR_PYTHON_SUPPORT_ENABLED -#include - #include #include #include #include #include +#include #include #include @@ -128,9 +127,9 @@ struct TfType::_TypeInfo { std::unique_ptr factory; // Map of derived type aliases to derived types. - boost::optional aliasToDerivedTypeMap; + std::optional aliasToDerivedTypeMap; // Reverse map of derived types to their aliases. - boost::optional derivedTypeToAliasesMap; + std::optional derivedTypeToAliasesMap; // Map of functions for converting to other types. // This map is keyed by type_info and not TfType because the TfTypes