Skip to content

Commit

Permalink
Replace boost::{add,remove}_const with STL in pyPtrHelpers.h
Browse files Browse the repository at this point in the history
  • Loading branch information
nvmkuruc committed Sep 14, 2023
1 parent 6988a51 commit 8daf372
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 8daf372

Please sign in to comment.