pybind11/include
Ralf W. Grosse-Kunstleve 24bf40bb3e Specialize the simple common case.
Using a `union` is complicated: https://en.cppreference.com/w/cpp/language/union

> If members of a union are classes with user-defined constructors and destructors, to switch the active member, explicit destructor and placement new are generally needed:

Using `std::variant` increases compile-time overhead.

It is currently unclear how much these effects matter in practice: optimization left for later.
2023-09-18 20:15:11 -07:00
..
pybind11 Specialize the simple common case. 2023-09-18 20:15:11 -07:00