diff options
Diffstat (limited to 'odb/semantics/unit.cxx')
-rw-r--r-- | odb/semantics/unit.cxx | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/odb/semantics/unit.cxx b/odb/semantics/unit.cxx new file mode 100644 index 0000000..073b7fd --- /dev/null +++ b/odb/semantics/unit.cxx @@ -0,0 +1,32 @@ +// file : odb/semantics/unit.cxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#include <cutl/compiler/type-info.hxx> + +#include <semantics/unit.hxx> + +namespace semantics +{ + // type info + // + namespace + { + struct init + { + init () + { + using compiler::type_info; + + // unit + // + { + type_info ti (typeid (unit)); + ti.add_base (typeid (namespace_)); + insert (ti); + } + } + } init_; + } +} |