[odb-users] Const members

Boris Kolpackov boris at codesynthesis.com
Mon Jan 11 09:33:09 EST 2016


Hi Aarón,

Aarón Bueno Villares <abv150ci at gmail.com> writes:

> The most obvious thing is they are not loaded at all because you know, how
> could ODB assigns values to it? But I don't know if ODB performs some kind
> of const_cast to their members through reference accessors or whatever....

They are loaded and, yes, ODB uses const_cast to obtain a non-const reference.
The rest of the semantics of const/readonly member is described in Section
14.4.12, "readonly".

Boris




More information about the odb-users mailing list