diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-08 17:27:40 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-08 17:27:40 +0200 |
commit | 4fd6bca4e75870958ea61b94e0a1e60e78cd91bc (patch) | |
tree | 2119cae72f45e1ceff1982d8364b4b678ac4ee69 /odb/common.hxx | |
parent | 7cd11b5f604c7d786261568aa31cd2ae3638f61e (diff) |
Add support for defining composite value type as class template instantiations
Diffstat (limited to 'odb/common.hxx')
-rw-r--r-- | odb/common.hxx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/odb/common.hxx b/odb/common.hxx index 679e25c..f29eeca 100644 --- a/odb/common.hxx +++ b/odb/common.hxx @@ -250,4 +250,25 @@ private: traversal::inherits inherits_; }; +// Traverse composite values that are class template instantiations. +// +struct typedefs: traversal::typedefs, context +{ + typedefs (bool traverse_included) + : included_ (traverse_included) + { + } + + virtual void + traverse (semantics::typedefs&); + + // Returns true if we should traverse this typedef. + // + bool + check (semantics::typedefs&); + +private: + bool included_; +}; + #endif // ODB_COMMON_HXX |