diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-03-25 13:47:43 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-03-25 13:47:43 +0200 |
commit | 01f77f6d38283b4efbe2b55fc9c7c837fd6498dc (patch) | |
tree | 12059fa0c514a3f2b9da2a9419593e3596cc6f5d /odb/semantics/union.hxx | |
parent | ad637abaa62a26461b276769c35dd1b67036b54b (diff) |
Add support for union, enum, class/union template
Diffstat (limited to 'odb/semantics/union.hxx')
-rw-r--r-- | odb/semantics/union.hxx | 32 |
1 files changed, 32 insertions, 0 deletions
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 <boris@codesynthesis.com> +// 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 <semantics/elements.hxx> + +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 |