diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-10-21 18:06:33 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-10-21 19:25:06 +0200 |
commit | 5ff1382aeae38946889b1e09a21bde1c48475dfd (patch) | |
tree | 99af0e6a0992e4fd89c70b37425ba784927b73ba /odb/relational | |
parent | 2043035eee4f8c0f3f896082651d3a5799e90ab8 (diff) |
Generate auto_id constant even if id is in base
Diffstat (limited to 'odb/relational')
-rw-r--r-- | odb/relational/header.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/odb/relational/header.hxx b/odb/relational/header.hxx index 49a796f..0806042 100644 --- a/odb/relational/header.hxx +++ b/odb/relational/header.hxx @@ -965,6 +965,9 @@ namespace relational os << "typedef object_traits< " << base << " >::id_type id_type;" << endl + << "static const bool auto_id = object_traits< " << base << + " >::auto_id;" + << endl << "typedef object_traits< " << base << " >::id_image_type " << "id_image_type;" << endl; |