aboutsummaryrefslogtreecommitdiff
path: root/odb
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-12-21 11:12:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-01-20 15:43:45 +0200
commit254f244e6d3048ea0e0d3ad77c9f2ba64612224e (patch)
tree14c6027990154aa1ba33b36f7b293f1265cce537 /odb
parent372eb6a21a478e73ec459278eea417e58b453c85 (diff)
Add auto_() test for auto-id
Diffstat (limited to 'odb')
-rw-r--r--odb/context.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/odb/context.hxx b/odb/context.hxx
index 919e880..808e18f 100644
--- a/odb/context.hxx
+++ b/odb/context.hxx
@@ -378,6 +378,12 @@ public:
return m.count ("id");
}
+ static bool
+ auto_ (semantics::data_member& m)
+ {
+ return m.count ("auto");
+ }
+
// The member scope is used to override readonly status when a readonly
// class (object or composite value) inherits from a readwrite base.
//