[odb-users] raw pointer to application's global array

MM finjulhich at gmail.com
Fri May 30 07:48:18 EDT 2014


right
in the setter expression you gave before
set(set_foo (this, (?)))
with
set_foo( object&, const std::string& )


The pragma expression really should be:     set(set_foo (*this, (?)))

and i assume the (?) gets translated to the virtual member here the
std::string

Thanks,


On 30 May 2014 09:01, Boris Kolpackov <boris at codesynthesis.com> wrote:

> Hi,
>
> MM <finjulhich at gmail.com> writes:
>
> > #pragma db member(object::my_id_) id auto
> >
> > do i still need get/set ?
>
> That depends on whether ODB can access the member directly or if
> it can find suitable accessor/modifier automatically. Again, I
> send you to the ODB manual, this time Section 3.2, "Declaring
> Persistent Objects and Values".
>
> Boris
>


More information about the odb-users mailing list