diff --git a/pxr/usd/sdf/pyListEditorProxy.h b/pxr/usd/sdf/pyListEditorProxy.h index fd91c167d4..8ada0a47e1 100644 --- a/pxr/usd/sdf/pyListEditorProxy.h +++ b/pxr/usd/sdf/pyListEditorProxy.h @@ -200,8 +200,7 @@ class SdfPyWrapListEditorProxy { static std::string _GetStr(const Type& x) { - return x._listEditor ? - boost::lexical_cast(*x._listEditor) : std::string(); + return x._listEditor ? TfStringify(*x._listEditor) : std::string(); } static void _SetExplicitProxy(Type& x, const value_vector_type& v) diff --git a/pxr/usd/sdf/wrapAssetPath.cpp b/pxr/usd/sdf/wrapAssetPath.cpp index 9985e47c74..02c7df7ce2 100644 --- a/pxr/usd/sdf/wrapAssetPath.cpp +++ b/pxr/usd/sdf/wrapAssetPath.cpp @@ -26,6 +26,7 @@ #include "pxr/base/vt/valueFromPython.h" #include "pxr/base/tf/hash.h" #include "pxr/base/tf/pyResultConversions.h" +#include "pxr/base/tf/stringUtils.h" #include "pxr/base/vt/wrapArray.h" #include @@ -48,7 +49,7 @@ namespace { static std::string _Str(SdfAssetPath const &self) { - return boost::lexical_cast(self); + return TfStringify(self); } static std::string diff --git a/pxr/usd/sdf/wrapTimeCode.cpp b/pxr/usd/sdf/wrapTimeCode.cpp index 73b4f3ad1a..66e3eff172 100644 --- a/pxr/usd/sdf/wrapTimeCode.cpp +++ b/pxr/usd/sdf/wrapTimeCode.cpp @@ -26,6 +26,7 @@ #include "pxr/base/vt/valueFromPython.h" #include "pxr/base/tf/hash.h" #include "pxr/base/tf/pyResultConversions.h" +#include "pxr/base/tf/stringUtils.h" #include "pxr/base/vt/wrapArray.h" #include @@ -48,7 +49,7 @@ namespace { static std::string _Str(SdfTimeCode const &self) { - return boost::lexical_cast(self); + return TfStringify(self); } static std::string diff --git a/pxr/usd/usd/wrapStageLoadRules.cpp b/pxr/usd/usd/wrapStageLoadRules.cpp index 5fe6b99d2d..a627b2c455 100644 --- a/pxr/usd/usd/wrapStageLoadRules.cpp +++ b/pxr/usd/usd/wrapStageLoadRules.cpp @@ -33,6 +33,7 @@ #include "pxr/base/tf/pyEnum.h" #include "pxr/base/tf/pyResultConversions.h" #include "pxr/base/tf/pyUtils.h" +#include "pxr/base/tf/stringUtils.h" using std::string; @@ -44,7 +45,7 @@ namespace { static std::string __str__(UsdStageLoadRules const &self) { - return boost::lexical_cast(self); + return TfStringify(self); } static string __repr__(UsdStageLoadRules const &self) diff --git a/pxr/usd/usd/wrapStagePopulationMask.cpp b/pxr/usd/usd/wrapStagePopulationMask.cpp index de7c056269..b2765ad590 100644 --- a/pxr/usd/usd/wrapStagePopulationMask.cpp +++ b/pxr/usd/usd/wrapStagePopulationMask.cpp @@ -29,6 +29,7 @@ #include "pxr/usd/usd/stagePopulationMask.h" #include "pxr/base/tf/pyUtils.h" #include "pxr/base/tf/pyResultConversions.h" +#include "pxr/base/tf/stringUtils.h" using std::string; @@ -40,7 +41,7 @@ namespace { static std::string __str__(UsdStagePopulationMask const &self) { - return boost::lexical_cast(self); + return TfStringify(self); } static string __repr__(UsdStagePopulationMask const &self) diff --git a/pxr/usd/usd/wrapTimeCode.cpp b/pxr/usd/usd/wrapTimeCode.cpp index baf586d1bf..9332e05bea 100644 --- a/pxr/usd/usd/wrapTimeCode.cpp +++ b/pxr/usd/usd/wrapTimeCode.cpp @@ -46,7 +46,7 @@ static size_t __hash__(const UsdTimeCode &self) { return hash_value(self); } static std::string _Str(const UsdTimeCode &self) { - return boost::lexical_cast(self); + return TfStringify(self); } static string __repr__(const UsdTimeCode &self)