@@ -60,10 +60,10 @@ struct is_comparable<T, enable_if_t<container_traits<T>::is_pair>> {
60
60
};
61
61
62
62
/* Fallback functions */
63
- template <typename , typename > void vector_if_copy_constructible (...) { }
64
- template <typename , typename > void vector_if_equal_operator (...) { }
65
- template <typename , typename > void vector_if_insertion_operator (...) { }
66
- template <typename , typename > void vector_modifiers (...) { }
63
+ template <typename , typename , typename ... Args > void vector_if_copy_constructible (const Args & ...) { }
64
+ template <typename , typename , typename ... Args > void vector_if_equal_operator (const Args & ...) { }
65
+ template <typename , typename , typename ... Args > void vector_if_insertion_operator (const Args & ...) { }
66
+ template <typename , typename , typename ... Args > void vector_modifiers (const Args & ...) { }
67
67
68
68
template <typename Vector, typename Class_>
69
69
void vector_if_copy_constructible (enable_if_t <
@@ -413,8 +413,8 @@ pybind11::class_<Vector, holder_type> bind_vector(pybind11::module &m, std::stri
413
413
NAMESPACE_BEGIN (detail)
414
414
415
415
/* Fallback functions */
416
- template <typename, typename> void map_if_insertion_operator(...) { }
417
- template <typename , typename > void map_assignment (...) { }
416
+ template <typename, typename, typename... Args > void map_if_insertion_operator(const Args & ...) { }
417
+ template <typename , typename , typename ... Args > void map_assignment (const Args & ...) { }
418
418
419
419
// Map assignment when copy-assignable: just copy the value
420
420
template <typename Map, typename Class_>
0 commit comments