mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-26 23:22:01 +00:00
39fd6a9463
The lookup of the `self` type and value pointer are moved out of template code and into `dispatcher`. This brings down the binary size of constructors back to the level of the old placement-new approach. (It also avoids a second lookup for `init_instance`.) With this implementation, mixing old- and new-style constructors in the same overload set may result in some runtime overhead for temporary allocations/deallocations, but this should be fine as old style constructors are phased out. |
||
---|---|---|
.. | ||
pybind11 |