diff --git a/include/xtensor-python/pyarray.hpp b/include/xtensor-python/pyarray.hpp index 03e803d..66852d9 100644 --- a/include/xtensor-python/pyarray.hpp +++ b/include/xtensor-python/pyarray.hpp @@ -263,15 +263,15 @@ namespace xt } template - inline pyarray::pyarray(pybind11::handle h, pybind11::object::borrowed_t) - : base_type(h, pybind11::object::borrowed) + inline pyarray::pyarray(pybind11::handle h, pybind11::object::borrowed_t b) + : base_type(h, b) { init_from_python(); } template - inline pyarray::pyarray(pybind11::handle h, pybind11::object::stolen_t) - : base_type(h, pybind11::object::stolen) + inline pyarray::pyarray(pybind11::handle h, pybind11::object::stolen_t s) + : base_type(h, s) { init_from_python(); } diff --git a/include/xtensor-python/pycontainer.hpp b/include/xtensor-python/pycontainer.hpp index f6bbbe4..42b54cf 100644 --- a/include/xtensor-python/pycontainer.hpp +++ b/include/xtensor-python/pycontainer.hpp @@ -132,14 +132,14 @@ namespace xt } template - inline pycontainer::pycontainer(pybind11::handle h, borrowed_t) - : pybind11::object(h, borrowed) + inline pycontainer::pycontainer(pybind11::handle h, borrowed_t b) + : pybind11::object(h, b) { } template - inline pycontainer::pycontainer(pybind11::handle h, stolen_t) - : pybind11::object(h, stolen) + inline pycontainer::pycontainer(pybind11::handle h, stolen_t s) + : pybind11::object(h, s) { } diff --git a/include/xtensor-python/pytensor.hpp b/include/xtensor-python/pytensor.hpp index 27971b9..18cac3a 100644 --- a/include/xtensor-python/pytensor.hpp +++ b/include/xtensor-python/pytensor.hpp @@ -176,15 +176,15 @@ namespace xt } template - inline pytensor::pytensor(pybind11::handle h, pybind11::object::borrowed_t) - : base_type(h, pybind11::object::borrowed) + inline pytensor::pytensor(pybind11::handle h, pybind11::object::borrowed_t b) + : base_type(h, b) { init_from_python(); } template - inline pytensor::pytensor(pybind11::handle h, pybind11::object::stolen_t) - : base_type(h, pybind11::object::stolen) + inline pytensor::pytensor(pybind11::handle h, pybind11::object::stolen_t s) + : base_type(h, s) { init_from_python(); }