Skip to content

Commit

Permalink
Merge pull request #2700 from nvmkuruc/tfconstptr
Browse files Browse the repository at this point in the history
Replace `boost::{add,remove}_const` with STL in `pyPtrHelpers.h`

(Internal change: 2296054)
  • Loading branch information
pixar-oss committed Sep 19, 2023
2 parents ac54b14 + 8daf372 commit c92d668
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pxr/base/tf/pyPtrHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
#include <boost/python/to_python_converter.hpp>

#include <memory>
#include <type_traits>

PXR_NAMESPACE_OPEN_SCOPE

Expand Down Expand Up @@ -114,8 +115,8 @@ using namespace boost::python;
template <typename Ptr>
struct _PtrInterface {
typedef typename Ptr::DataType Pointee;
typedef typename boost::add_const<Pointee>::type ConstPointee;
typedef typename boost::remove_const<Pointee>::type NonConstPointee;
using ConstPointee = std::add_const_t<Pointee>;
using NonConstPointee = std::remove_const_t<Pointee>;

template <typename U>
struct Rebind {
Expand Down

0 comments on commit c92d668

Please sign in to comment.