C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Calling C++ functions in a .so directly from foreign languages and C++ as an interface definition language

From: Paul Caprioli <paul_at_[hidden]>
Date: Sun, 31 Aug 2025 04:15:17 +0000
> Nota Bene: There was one bug I can't fix with the current design of > C++ and Python. Returning a class by value will result in it being > destructed without being copied first. Pybind11 and nanobind handle these kinds of ownership issues. For example, they arrange to call the C++ destructor when Python frees the object. There's much more going on than name mangling.

Received on 2025-08-31 04:15:20