From b670b77060dee2bd2d2690efeb0c5777ee0a75be Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Wed, 20 Jan 2016 01:26:43 +0100 Subject: [PATCH] minor adjustment to detail::is_copy_constructible (fixes #70) --- include/pybind11/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/common.h b/include/pybind11/common.h index a63b7f5b..2a00fa7d 100644 --- a/include/pybind11/common.h +++ b/include/pybind11/common.h @@ -247,7 +247,7 @@ template struct intrinsic_type { typedef type /** \brief SFINAE helper class to check if a copy constructor is usable (in contrast to * std::is_copy_constructible, this class also checks if the 'new' operator is accessible */ template struct is_copy_constructible { - template static std::true_type test(decltype(new T2(std::declval())) *); + template static std::true_type test(decltype(new T2(std::declval::type>())) *); template static std::false_type test(...); static const bool value = std::is_same(nullptr))>::value; };