[odb-users] no modifiers found

MM finjulhich at gmail.com
Tue Jun 3 05:14:58 EDT 2014


I have tried to define the type found here:
http://www.boost.org/doc/libs/1_54_0/doc/html/date_time/posix_time.html#date_time.posix_time.time_period

as a value type with

#pragma db value(boost::posix_time::time_period) transient definition
#pragma db member(boost::posix_time::time_period::begin)
virtual(boost::posix_time::ptime)
#pragma db member(boost::posix_time::time_period::end)
virtual(boost::posix_time::ptime)

However, modifiers are indeed not found in that type definition. The doc
lists only some accessors. The type doesn't have a def ctor, provides a
user ctor and a copy ctor, but no assignment operator, nor setter for
begin/end.

I assume the only solution is some wrapper type?

Hicham


More information about the odb-users mailing list