mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2024-12-27 21:35:41 +00:00
Fix operator*
This commit is contained in:
parent
1bc059bfe4
commit
34b4588481
1 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,7 @@ namespace curry {
|
|||
SafeStackObject& operator= (const SafeStackObject& parOther) = delete;
|
||||
|
||||
operator Kakoune::SafePtr<T>&();
|
||||
safe_ptr& operator*();
|
||||
T& operator*();
|
||||
safe_ptr& operator->();
|
||||
|
||||
private:
|
||||
|
@ -85,8 +85,8 @@ namespace curry {
|
|||
}
|
||||
|
||||
template <typename T>
|
||||
auto SafeStackObject<T>::operator*() -> safe_ptr& {
|
||||
return m_obj_ptr;
|
||||
T& SafeStackObject<T>::operator*() {
|
||||
return *m_obj_ptr;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
|
Loading…
Reference in a new issue