We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e767ac9 commit 440ac9dCopy full SHA for 440ac9d
include/pybind11/attr.h
@@ -541,7 +541,7 @@ struct process_attribute<is_new_style_constructor>
541
/// Process an attribute which adds a typevariable
542
template <>
543
struct process_attribute<typevar_record> : process_attribute_default<typevar_record> {
544
- static void init(const typevar_record t, function_record *r) { r->type_vars.push_back(t); }
+ static void init(const typevar_record &t, function_record *r) { r->type_vars.push_back(t); }
545
};
546
547
inline void check_kw_only_arg(const arg &a, function_record *r) {
0 commit comments