Replace classh : class_ inhertance with using, as suggested by @henryiii

https://github.com/pybind/pybind11/pull/5542#issuecomment-2689034104
This commit is contained in:
Ralf W. Grosse-Kunstleve
2025-02-27 14:12:05 -08:00
parent 5f1d64639f
commit ff7c087321

View File

@@ -2378,10 +2378,7 @@ private:
// Supports easier switching between py::class_<T> and py::class_<T, py::smart_holder>:
// users can simply replace the `_` in `class_` with `h` or vice versa.
template <typename type_, typename... options>
class classh : public class_<type_, smart_holder, options...> {
public:
using class_<type_, smart_holder, options...>::class_;
};
using classh = class_<type_, smart_holder, options...>;
/// Binds an existing constructor taking arguments Args...
template <typename... Args>