mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01: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:
@@ -134,6 +134,8 @@ class Genode::Volatile_object
|
||||
*/
|
||||
MT *operator -> () { _check_constructed(); return _ptr(); }
|
||||
MT const *operator -> () const { _check_constructed(); return _const_ptr(); }
|
||||
|
||||
MT &operator * () { _check_constructed(); return *_ptr(); }
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user