[odb-users] get() and c++11 aggregate initialization
Boris Kolpackov
boris at codesynthesis.com
Mon Jul 20 13:21:54 EDT 2015
Hi Hicham,
Hicham Mouline <hicham at mouline.org> writes:
> 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 } )
You should be, except that there is a bug in the (released) ODB
compiler that would prevent you from using this feature. It has
been fixed for the upcoming release, if you would like to try
the patch:
http://scm.codesynthesis.com/?p=odb/odb.git;a=commit;h=4d134880196e85e06d5ff4e83a26a3b15027706a
Boris
More information about the odb-users
mailing list