Skip to content

Commit

Permalink
orbis-kernel: add deduction guide for Ref utility
Browse files Browse the repository at this point in the history
  • Loading branch information
DHrpcs3 committed Oct 31, 2024
1 parent ef2a4b3 commit 8440940
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions orbis-kernel/include/orbis/utils/Rc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ template <typename T> class Ref {
}
};

template <typename T> Ref(T *) -> Ref<T>;

// template <WithRc T, typename... ArgsT>
// requires(std::is_constructible_v<T, ArgsT...>)
// Ref<T> kcreate(ArgsT &&...args) {
Expand Down

0 comments on commit 8440940

Please sign in to comment.