diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-12-21 11:12:45 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-20 15:43:45 +0200 |
commit | 254f244e6d3048ea0e0d3ad77c9f2ba64612224e (patch) | |
tree | 14c6027990154aa1ba33b36f7b293f1265cce537 /odb/context.hxx | |
parent | 372eb6a21a478e73ec459278eea417e58b453c85 (diff) |
Add auto_() test for auto-id
Diffstat (limited to 'odb/context.hxx')
-rw-r--r-- | odb/context.hxx | 6 |
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. // |