aboutsummaryrefslogtreecommitdiff
path: root/odb/context.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-11-05 11:46:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-11-21 13:13:50 +0200
commitcc3979f34a886ae4c89d4e3e86a5b0db1669585f (patch)
treea8273aecad04fae7109446e77da89acfec41d7f6 /odb/context.cxx
parentcbec5ef49dca08975c1c894bb796d2744a2429a6 (diff)
Move some of the preprocessing from relational to common
Diffstat (limited to 'odb/context.cxx')
-rw-r--r--odb/context.cxx18
1 files changed, 1 insertions, 17 deletions
diff --git a/odb/context.cxx b/odb/context.cxx
index fbab993..657c283 100644
--- a/odb/context.cxx
+++ b/odb/context.cxx
@@ -1068,23 +1068,7 @@ type_val_type (semantics::type& t,
bool context::
composite_ (semantics::class_& c)
{
- bool r (true);
-
- if (c.count ("value"))
- {
- for (pragma_name_set::const_iterator i (simple_value_pragmas_.begin ()),
- e (simple_value_pragmas_.end ()); i != e; ++i)
- {
- if (c.count (*i))
- {
- r = false;
- break;
- }
- }
- }
- else
- r = false;
-
+ bool r (c.count ("value") && !c.count ("simple") && !c.count ("container"));
c.set ("composite-value", r);
return r;
}