diff options
| author | HampusM <hampus@hampusmat.com> | 2022-03-01 09:22:37 +0100 | 
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2022-03-01 09:22:37 +0100 | 
| commit | 249323fc5fa14dbc4c1a6316873cfc07f468f43b (patch) | |
| tree | bd53ea18ab364e5f19993d0f7ef07a39ce10f60f /src/std | |
| parent | 61f11389ea6296fb0c28dd7aa4d0bfa6feb919f3 (diff) | |
refactor: fix serial stream & unique ptr
Diffstat (limited to 'src/std')
| -rw-r--r-- | src/std/memory.tpp | 9 | 
1 files changed, 3 insertions, 6 deletions
| diff --git a/src/std/memory.tpp b/src/std/memory.tpp index 1bfa473..fdfe72b 100644 --- a/src/std/memory.tpp +++ b/src/std/memory.tpp @@ -68,22 +68,19 @@ UniquePtr<Target> &UniquePtr<Target>::operator=(UniquePtr &&unique_ptr) noexcept  template <class Target>  UniquePtr<Target>::~UniquePtr()  { -	if (this->_target != nullptr) -	{ -		delete this->_target; -	} +	delete _target;  }  template <class Target>  Target UniquePtr<Target>::operator*() const  { -	return *(this->_target); +	return *(_target);  }  template <class Target>  Target *UniquePtr<Target>::operator->() const  { -	return this->_target; +	return _target;  }  template <class Target, typename... Args> | 
