Skip to content

Commit

Permalink
Use push_back with const char * instead of emplace_back
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickJadoul committed Jan 13, 2021
1 parent 6578453 commit 1c20521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/pybind11/pybind11.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class cpp_function : public function {
}
char *operator()(const char *s) {
auto t = strdup(s);
strings.emplace_back(t);
strings.push_back(t);
return t;
}
void release() {
Expand Down

0 comments on commit 1c20521

Please sign in to comment.