[odb-users] Possible bug or missing feature

Boris Kolpackov boris at codesynthesis.com
Mon Jun 19 12:47:54 EDT 2017


Ronnie Chowdhury <ronnie.c995 at gmail.com> writes:

> #pragma db type ("INTEGER")
> std::vector<boost::posix_time::ptime> ts; // Fails

How do you expect a vector to be mapped into an integer in the database?
Perhaps what you mean is this:

#pragma db value_type ("INTEGER")
std::vector<boost::posix_time::ptime> ts;

Boris



More information about the odb-users mailing list