[odb-users] Object Model based on Interfaces

Boris Kolpackov boris at codesynthesis.com
Fri Jun 13 04:55:41 EDT 2014


Hi Christian,

Lichtenberger, Christian <christian.lichtenberger at etm.at> writes:

> I think this should be relatively easy to implement in ODB.

It is not. Trust me, I've implemented the single inheritance support ;-).


>   class WBE_REPOSITORY_EXPORT access::object_traits< ::IDerived > :
>     public access::object_traits< ::Derived >
>
> And a cast in the object_traits_impl, which depends on the pointer type

Normally, the idea of having something like IDerived is to have
multiple implementations. What if you have AnotherDerived? How
will this work?

Boris



More information about the odb-users mailing list