signature of equality operators

Norman Feske norman.feske at ...1...
Mon May 18 11:45:17 CEST 2015

Hello Pirmin,

> In base/trace/types.h the signature of the operator==() for Subject_id  
> is defined as follows:
> bool operator == (Subject_id const &other) { return id ==; }
> Shouldnt it be?
> bool operator == (Subject_id const &other) const { return id ==; }
> Most recomendations on operator overloading, I have read, recommend this.

thank you for reporting this issue. The const qualifier is indeed
missing. I just added it in the following commit (to the staging branch):


Dr.-Ing. Norman Feske
Genode Labs ·

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth

More information about the users mailing list