[odb-users] Composite value object id

Boris Kolpackov boris at codesynthesis.com
Thu May 12 19:29:04 EDT 2016

Hi Artem,

Артём Бодрин <abodrin at gmail.com> writes:

> I misunderstood something?

Yes. You cannot make a member inside a composite value type an object id
but you can make a member inside an object which is of a composite value
type an object id.

#pragma db value
struct point
  #pragma db id // error
  int x;
  int y;

#pragma db value
struct circle
  #pragma db id // ok
  point center;

See also this commit for some upcoming enhancements in this area:



More information about the odb-users mailing list