From 01f77f6d38283b4efbe2b55fc9c7c837fd6498dc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 25 Mar 2010 13:47:43 +0200 Subject: Add support for union, enum, class/union template --- odb/semantics/union.hxx | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 odb/semantics/union.hxx (limited to 'odb/semantics/union.hxx') diff --git a/odb/semantics/union.hxx b/odb/semantics/union.hxx new file mode 100644 index 0000000..2873d97 --- /dev/null +++ b/odb/semantics/union.hxx @@ -0,0 +1,32 @@ +// file : odb/semantics/union.hxx +// author : Boris Kolpackov +// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef ODB_SEMANTICS_UNION_HXX +#define ODB_SEMANTICS_UNION_HXX + +#include + +namespace semantics +{ + class union_: public virtual type, public scope + { + public: + union_ (path const& file, size_t line, size_t column) + : node (file, line, column) + { + } + + // Resolve conflict between scope::scope and nameable::scope. + // + using nameable::scope; + + protected: + union_ () + { + } + }; +} + +#endif // ODB_SEMANTICS_UNION_HXX -- cgit v1.1