[odb-users] Persisting class instantiated from a template
Balázs Bayer
balazs.bayer at gmail.com
Wed Mar 15 13:38:56 EDT 2017
Sorry, the errors for
#pragma db value(ResultFloatSeven) definition transient
#pragma db member(ResultFloatSeven::Id_) virtual(int)
#pragma db member(ResultFloatSeven::Value_) virtual(float)
are:
result.hpp:42:31: error: data member 'Values' is private and no suitable
accessor function could be automatically found
result.hpp:42:31: info: consider making class 'odb::access' a friend of
class 'ResultFloatSeven'
result.hpp:42:31: info: or use '#pragma db get' to explicitly specify the
accessor function or expression
result.hpp:42:31: error: data member 'Values' is private and no suitable
accessor function could be automatically found
result.hpp:42:31: info: consider making class 'odb::access' a friend of
class 'ResultFloatSeven'
result.hpp:42:31: info: or use '#pragma db get' to explicitly specify the
accessor function or expression
More information about the odb-users
mailing list