Change Declaration passing to use Ptr (#758)

This commit is contained in:
Jon Meow
2021-08-19 11:33:32 -07:00
committed by GitHub
parent 50cfda0e1c
commit 925c60b669
10 changed files with 37 additions and 34 deletions
+1 -3
View File
@@ -20,9 +20,7 @@ class Ptr {
template <typename OtherT,
std::enable_if_t<std::is_convertible_v<OtherT*, T*>>* = nullptr>
Ptr(Ptr<OtherT> other) {
return Ptr<OtherT>(other.ptr);
}
Ptr(Ptr<OtherT> other) : ptr(other.Get()) {}
Ptr(std::nullptr_t) = delete;