[odb-users] get() and c++11 aggregate initialization

Hicham Mouline hicham at mouline.org
Sun Jul 19 04:55:47 EDT 2015


Hi,

With c++11, in a odb pragma, I have an explicit accessor.

struct selector {
  int a;
  int b;
};

If I have a virtual member of type selector, can I use brace-initialization
to return an object of that type, like

#pragma ......... get( selector{ 1, 5 } )


More information about the odb-users mailing list