base: add const version of 'Fifo::Element::object'

This commit is contained in:
Norman Feske 2019-04-11 19:59:07 +02:00 committed by Christian Helmuth
parent 35cf804471
commit ea6b1c255e

View File

@ -206,7 +206,9 @@ class Genode::Fifo_element : public Fifo<Fifo_element<T> >::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_ */