diff options
Diffstat (limited to 'odb/header.cxx')
-rw-r--r-- | odb/header.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/odb/header.cxx b/odb/header.cxx index a2b3b96..8e6718d 100644 --- a/odb/header.cxx +++ b/odb/header.cxx @@ -46,6 +46,11 @@ namespace header os << "#include <odb/container-traits.hxx>" << endl; + if (ctx.features.session_object) + os << "#include <odb/cache-traits.hxx>" << endl; + else + os << "#include <odb/no-op-cache-traits.hxx>" << endl; + if (ctx.features.polymorphic_object) os << "#include <odb/polymorphic-info.hxx>" << endl; |