From 4fd6bca4e75870958ea61b94e0a1e60e78cd91bc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 8 Jan 2012 17:27:40 +0200 Subject: Add support for defining composite value type as class template instantiations --- odb/common.hxx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'odb/common.hxx') 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 -- cgit v1.1