mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2025-06-07 00:51: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;
|
SafeStackObject& operator= (const SafeStackObject& parOther) = delete;
|
||||||
|
|
||||||
operator Kakoune::SafePtr<T>&();
|
operator Kakoune::SafePtr<T>&();
|
||||||
safe_ptr& operator*();
|
T& operator*();
|
||||||
safe_ptr& operator->();
|
safe_ptr& operator->();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -85,8 +85,8 @@ namespace curry {
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
auto SafeStackObject<T>::operator*() -> safe_ptr& {
|
T& SafeStackObject<T>::operator*() {
|
||||||
return m_obj_ptr;
|
return *m_obj_ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
|
Loading…
Add table
Reference in a new issue