Skip to content

Commit 88a1bb9

Browse files
authored
chore: remove unnecessary temporary std::pair (#4103)
1 parent f8e8403 commit 88a1bb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/pybind11.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2073,7 +2073,7 @@ struct enum_base {
20732073
+ "\" already exists!");
20742074
}
20752075

2076-
entries[name] = std::make_pair(value, doc);
2076+
entries[name] = pybind11::make_tuple(value, doc);
20772077
m_base.attr(std::move(name)) = std::move(value);
20782078
}
20792079

0 commit comments

Comments
 (0)