mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-30 08:57:11 +00:00
Merge branch 'pybind:master' into master
This commit is contained in:
commit
c8d52c4e3d
@ -312,6 +312,10 @@ protected:
|
|||||||
// along the way.
|
// along the way.
|
||||||
class strdup_guard {
|
class strdup_guard {
|
||||||
public:
|
public:
|
||||||
|
strdup_guard() = default;
|
||||||
|
strdup_guard(const strdup_guard &) = delete;
|
||||||
|
strdup_guard &operator=(const strdup_guard &) = delete;
|
||||||
|
|
||||||
~strdup_guard() {
|
~strdup_guard() {
|
||||||
for (auto *s : strings) {
|
for (auto *s : strings) {
|
||||||
std::free(s);
|
std::free(s);
|
||||||
|
Loading…
Reference in New Issue
Block a user