From ea6b1c255e9cb98e01cae569b1c10165227f822d Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Thu, 11 Apr 2019 19:59:07 +0200 Subject: [PATCH] base: add const version of 'Fifo::Element::object' --- repos/base/include/util/fifo.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/repos/base/include/util/fifo.h b/repos/base/include/util/fifo.h index 13674bb17c..b3a3e1286d 100644 --- a/repos/base/include/util/fifo.h +++ b/repos/base/include/util/fifo.h @@ -206,7 +206,9 @@ class Genode::Fifo_element : public Fifo >::Element Fifo_element(T &object) : _object(object) { } - inline T &object() { return _object; } + T &object() { return _object; } + T const &object() const { return _object; } + }; #endif /* _INCLUDE__UTIL__FIFO_H_ */