From 67b3daeea4c621849ba4636d1d9865c14d089629 Mon Sep 17 00:00:00 2001 From: Ivan Smirnov Date: Mon, 15 Aug 2016 01:24:28 +0100 Subject: [PATCH] Always decay type param of npy_format_descriptor --- include/pybind11/numpy.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index e2b5a16a..57961c5a 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h @@ -29,8 +29,6 @@ NAMESPACE_BEGIN(pybind11) namespace detail { template struct npy_format_descriptor { }; template struct is_pod_struct; -template using decay_cv_ref = - typename std::remove_cv::type>::type; struct npy_api { enum constants { @@ -148,7 +146,7 @@ public: } template static dtype of() { - return detail::npy_format_descriptor::dtype(); + return detail::npy_format_descriptor::type>::dtype(); } size_t itemsize() const { @@ -306,7 +304,9 @@ public: template struct format_descriptor::value>::type> { - static std::string format() { return detail::npy_format_descriptor::format(); } + static std::string format() { + return detail::npy_format_descriptor::type>::format(); + } }; template struct format_descriptor {