Skip to content

Commit ff7c087

Browse files
committed
Replace classh : class_ inhertance with using, as suggested by @henryiii
#5542 (comment)
1 parent 5f1d646 commit ff7c087

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

include/pybind11/pybind11.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2378,10 +2378,7 @@ class class_ : public detail::generic_type {
23782378
// Supports easier switching between py::class_<T> and py::class_<T, py::smart_holder>:
23792379
// users can simply replace the `_` in `class_` with `h` or vice versa.
23802380
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-
};
2381+
using classh = class_<type_, smart_holder, options...>;
23852382

23862383
/// Binds an existing constructor taking arguments Args...
23872384
template <typename... Args>

0 commit comments

Comments
 (0)