This commit is contained in:
Treb Connell
2015-09-28 15:17:37 -07:00
parent 27ff004e84
commit a46d6fcf0d
2 changed files with 53 additions and 31 deletions
+2 -2
View File
@@ -223,12 +223,12 @@ public:
template <typename U, typename Dummy = std::enable_if_t<std::is_convertible<U, T>::value>>
maybe_null_dbg(const maybe_null_dbg<U> &other) : ptr_(other.get()), tested_(false) {}
maybe_null_dbg(const maybe_null_dbg<U> &other) : ptr_(other.ptr_), tested_(false) {}
template <typename U, typename Dummy = std::enable_if_t<std::is_convertible<U, T>::value>>
maybe_null_dbg& operator=(const maybe_null_dbg<U> &other)
{
ptr_ = other.get();
ptr_ = other.ptr_;
tested_ = false;
return *this;
}