diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-03-04 16:33:51 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-03-04 16:33:51 +0200 |
commit | 7eed858cac7e8ff78626bdc5d63a7f36ca8f8010 (patch) | |
tree | 225dd25e354c4f6234dbf2c02608ec6545dcd688 /build/scope | |
parent | c76fe316122969986103d243706dc7fa7ab6ddc1 (diff) |
Move roots and bases to appropriate scopes
Diffstat (limited to 'build/scope')
-rw-r--r-- | build/scope | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/build/scope b/build/scope index 2746ff8..b4f492d 100644 --- a/build/scope +++ b/build/scope @@ -26,18 +26,18 @@ namespace build // Variable lookup. // public: - value* - operator[] (const variable&); + value_proxy + operator[] (const std::string&); - value* - operator[] (const std::string& name); + value_proxy + operator[] (const variable&); private: friend class scope_map; typedef path_map<scope>::const_iterator iterator; - scope () = default; + scope (): variables (*this) {} void init (const iterator& i, scope* p) {i_ = i; parent_ = p;} |