Skip to content

Commit 1c20521

Browse files
committed
Use push_back with const char * instead of emplace_back
1 parent 6578453 commit 1c20521

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
@@ -243,7 +243,7 @@ class cpp_function : public function {
243243
}
244244
char *operator()(const char *s) {
245245
auto t = strdup(s);
246-
strings.emplace_back(t);
246+
strings.push_back(t);
247247
return t;
248248
}
249249
void release() {

0 commit comments

Comments
 (0)