diff options
Diffstat (limited to 'odb/semantics/namespace.hxx')
-rw-r--r-- | odb/semantics/namespace.hxx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/odb/semantics/namespace.hxx b/odb/semantics/namespace.hxx index 7a886c5..96db4a7 100644 --- a/odb/semantics/namespace.hxx +++ b/odb/semantics/namespace.hxx @@ -13,6 +13,25 @@ namespace semantics class namespace_: public scope { public: + bool + extension () const + { + return original_ != 0; + } + + namespace_& + original () + { + return *original_; + } + + void + original (namespace_& ns) + { + original_ = &ns; + } + + public: namespace_ (path const&, size_t line, size_t column, tree); // Resolve conflict between scope::scope and nameable::scope. @@ -21,6 +40,9 @@ namespace semantics protected: namespace_ (); + + private: + namespace_* original_; }; } |