We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
classh : class_
using
1 parent 5f1d646 commit ff7c087Copy full SHA for ff7c087
include/pybind11/pybind11.h
@@ -2378,10 +2378,7 @@ class class_ : public detail::generic_type {
2378
// Supports easier switching between py::class_<T> and py::class_<T, py::smart_holder>:
2379
// users can simply replace the `_` in `class_` with `h` or vice versa.
2380
template <typename type_, typename... options>
2381
-class classh : public class_<type_, smart_holder, options...> {
2382
-public:
2383
- using class_<type_, smart_holder, options...>::class_;
2384
-};
+using classh = class_<type_, smart_holder, options...>;
2385
2386
/// Binds an existing constructor taking arguments Args...
2387
template <typename... Args>
0 commit comments