diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-04-26 11:29:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-04-26 11:29:05 +0200 |
commit | 8e046e3ea7e88f872205c2b65cb7f9b86aaabd93 (patch) | |
tree | aba1ae331454eb1e0cf9525faf8a084d3652bda0 /odb/header.cxx | |
parent | 6c88333c2e0232aed9e0b3c9077306f09e36c65c (diff) |
Make session optional
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; |