From 7d1a8bc0e5011dd2b391608a207cf436b388576e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 2 Sep 2010 22:21:11 +0200 Subject: Move constructors to the source files This is done so that when the plugin is built as a static library, the object files with type information get pulled in. --- odb/semantics/unit.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'odb/semantics/unit.cxx') diff --git a/odb/semantics/unit.cxx b/odb/semantics/unit.cxx index 260b1c6..15b2c6e 100644 --- a/odb/semantics/unit.cxx +++ b/odb/semantics/unit.cxx @@ -8,6 +8,16 @@ namespace semantics { + unit:: + unit (path const& file) + : node (file, 1, 1), graph_ (*this) + { + // Use a special edge to get this->name() return the global + // namespace name (""). + // + new_edge (*this, *this); + } + // type info // namespace -- cgit v1.1