From c265cfa593633b98ec12cb8a09a081dd08c37b76 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Tue, 21 Jan 2014 22:29:26 +0100 Subject: [PATCH] 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. --- os/include/util/volatile_object.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/os/include/util/volatile_object.h b/os/include/util/volatile_object.h index 50213380bb..ab4d2f8aad 100644 --- a/os/include/util/volatile_object.h +++ b/os/include/util/volatile_object.h @@ -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(); } };