From 5ff1382aeae38946889b1e09a21bde1c48475dfd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 21 Oct 2011 18:06:33 +0200 Subject: Generate auto_id constant even if id is in base --- odb/relational/header.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'odb/relational') 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; -- cgit v1.1