Change Declaration passing to use Ptr (#758)

This commit is contained in:
Jon Meow authored and GitHub committed 2021-08-19 11:33:32 -07:00
1 parent 50cfda0e1c
commit 925c60b669
10 files changed
+37 -34

No files matched your search

+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;