1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2024-12-27 21:35:41 +00:00

Fix operator*

This commit is contained in:
King_DuckZ 2017-04-21 22:56:44 +01:00
parent 1bc059bfe4
commit 34b4588481

View file

@ -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>