diff --git a/include/pybind11/common.h b/include/pybind11/common.h index 0ee2dab29..aba804f7b 100644 --- a/include/pybind11/common.h +++ b/include/pybind11/common.h @@ -294,7 +294,7 @@ template struct is_copy_constructible { }; template struct is_move_constructible { - template static std::true_type test(decltype(new T2(std::declval::type>())) *); + template static std::true_type test(decltype(new T2(std::declval())) *); template static std::false_type test(...); static const bool value = std::is_same(nullptr))>::value; };