[odb-users] Mapping to nullptr_t in templated class interface
Boris Kolpackov
boris at codesynthesis.com
Wed Jun 21 13:15:43 EDT 2017
Henri Schwarz <il1k3pepsi at gmail.com> writes:
> But the odb compiler gives me an error "unable to map C++ type
> '::parent_interface< ::std::nullptr_t >::parent_type' used in data member
> 'parent' to a SQLite database type".
You could mark the parent member in Level1 class (that derives from the
nullptr'ed parent_interface) as transient. Probably no use storing it in
the database since it is always NULL.
Boris
More information about the odb-users
mailing list