mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Change Declaration passing to use Ptr (#758)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user