[odb-users] Support for boost::posix_time::ptime

Boris Kolpackov boris at codesynthesis.com
Tue Nov 6 13:50:45 EST 2012


Hi Sean,

Stroud, Sean T <ststrou at sandia.gov> writes:

> According to section “19.5.3 PostgreSQL Database Type Mapping” in the 
> ODB manual, the default mapping for posix_time::ptime is TIMESTAMP.  
>
> [...]
>
> % odb –d pgsql –q test_class.h

You need to enable the Boost date-time sub-profile:

odb –d pgsql -p boost/date-time –q test_class.h

See Section "19.5 Date Time Library" for details.

Boris



More information about the odb-users mailing list