[odb-users] Unable to Find Suitable Accessor Function Error

Boris Kolpackov boris at codesynthesis.com
Thu Apr 23 10:22:28 EDT 2015


Hi Greg,

Greg McKeever <organgtool at gmail.com> writes:

> BaseTransferObject.h:24:34: error: unable to find suitable accessor
> function 'getPrimaryKey'
> 
>     long getPrimaryKey();

An accessor must be const:

      long getPrimaryKey() const;

Boris



More information about the odb-users mailing list