mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-17 10:19:48 +00:00
Add 'operator *' to os/volatile_object.h
This operator is needed when we want to create a reference to (the content of) a volatile object.
This commit is contained in:
parent
638a9cfd40
commit
c265cfa593
@ -134,6 +134,8 @@ class Genode::Volatile_object
|
|||||||
*/
|
*/
|
||||||
MT *operator -> () { _check_constructed(); return _ptr(); }
|
MT *operator -> () { _check_constructed(); return _ptr(); }
|
||||||
MT const *operator -> () const { _check_constructed(); return _const_ptr(); }
|
MT const *operator -> () const { _check_constructed(); return _const_ptr(); }
|
||||||
|
|
||||||
|
MT &operator * () { _check_constructed(); return *_ptr(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user