Revert "Fix issue #49"

This reverts commit a46d6fcf0d.
This commit is contained in:
Treb Connell
2015-09-28 18:26:35 -07:00
parent a46d6fcf0d
commit b29566628e
2 changed files with 31 additions and 53 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.ptr_), tested_(false) {}
maybe_null_dbg(const maybe_null_dbg<U> &other) : ptr_(other.get()), 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.ptr_;
ptr_ = other.get();
tested_ = false;
return *this;
}