aboutsummaryrefslogtreecommitdiff
path: root/odb/header.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/header.cxx')
-rw-r--r--odb/header.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/odb/header.cxx b/odb/header.cxx
index 8e6718d..8bf5453 100644
--- a/odb/header.cxx
+++ b/odb/header.cxx
@@ -17,8 +17,12 @@ namespace header
ostream& os (ctx.os);
os << "#include <memory>" << endl
- << "#include <cstddef>" << endl // std::size_t
- << endl;
+ << "#include <cstddef>" << endl; // std::size_t
+
+ if (ctx.features.polymorphic_object)
+ os << "#include <string>" << endl; // For discriminator.
+
+ os << endl;
os << "#include <odb/core.hxx>" << endl
<< "#include <odb/traits.hxx>" << endl