From 213a61a1d9b41e71c886f0ff6a4762522cf68e63 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Thu, 6 Oct 2011 09:01:48 +0200 Subject: Add flag to context indicating whether to generate grow code --- odb/relational/header.hxx | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) (limited to 'odb/relational/header.hxx') diff --git a/odb/relational/header.hxx b/odb/relational/header.hxx index 1380c49..4c1421c 100644 --- a/odb/relational/header.hxx +++ b/odb/relational/header.hxx @@ -684,9 +684,12 @@ namespace relational // grow () // - os << "static void" << endl - << "grow (data_image_type&, " << truncated_vector << ");" - << endl; + if (generate_grow) + { + os << "static void" << endl + << "grow (data_image_type&, " << truncated_vector << ");" + << endl; + } // init (data_image) // @@ -1015,9 +1018,12 @@ namespace relational // grow () // - os << "static bool" << endl - << "grow (image_type&, " << truncated_vector << ");" - << endl; + if (generate_grow) + { + os << "static bool" << endl + << "grow (image_type&, " << truncated_vector << ");" + << endl; + } // bind (image_type) // @@ -1359,9 +1365,12 @@ namespace relational // grow () // - os << "static bool" << endl - << "grow (image_type&, " << truncated_vector << ");" - << endl; + if (generate_grow) + { + os << "static bool" << endl + << "grow (image_type&, " << truncated_vector << ");" + << endl; + } // bind (image_type) // @@ -1450,9 +1459,12 @@ namespace relational // grow () // - os << "static bool" << endl - << "grow (image_type&, " << truncated_vector << ");" - << endl; + if (generate_grow) + { + os << "static bool" << endl + << "grow (image_type&, " << truncated_vector << ");" + << endl; + } // bind (image_type) // -- cgit v1.1