mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-20 06:49:25 +00:00
Replace classh : class_ inhertance with using, as suggested by @henryiii
https://github.com/pybind/pybind11/pull/5542#issuecomment-2689034104
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user