diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-08-31 14:08:26 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-08-31 14:08:26 +0200 |
commit | 47d57dc9af5db83e5b508282b844064caf9b7968 (patch) | |
tree | d70dc21c678e32bcb9bbb1f5df3b67ccb1be1223 /odb/context.hxx | |
parent | 130d691d607f2ff78865cc84b6fe46a7e79daa9a (diff) |
Add transient() predicate
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 f5c58aa..db0b387 100644 --- a/odb/context.hxx +++ b/odb/context.hxx @@ -83,6 +83,12 @@ public: return t.count ("object"); } + static bool + transient (semantics::data_member& m) + { + return m.count ("transient"); + } + // Check whether the type is a wrapper. Return the wrapped type if // it is a wrapper and NULL otherwise. // |