aboutsummaryrefslogtreecommitdiff
path: root/build/scope.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-03-18 15:45:56 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-03-18 15:45:56 +0200
commitb6e72877a1a26a6ae16961728ee57e45f657f717 (patch)
treea161dd0d5ded669100a4adda9db256a30c366a9b /build/scope.cxx
parent5b5aabc6d347ff209c35b2db7250d4caaf9fd643 (diff)
Implement complete root/base detection, basic module support
This is the initial groundwork for the configuration support.
Diffstat (limited to 'build/scope.cxx')
-rw-r--r--build/scope.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/build/scope.cxx b/build/scope.cxx
index b9b576e..60c83b4 100644
--- a/build/scope.cxx
+++ b/build/scope.cxx
@@ -35,8 +35,8 @@ namespace build
scope_map scopes;
scope* root_scope;
- scope& scope_map::
- operator[] (const path& k)
+ pair<scope&, bool> scope_map::
+ insert (const path& k)
{
auto er (emplace (k, scope ()));
scope& s (er.first->second);
@@ -79,7 +79,7 @@ namespace build
s.init (er.first, p);
}
- return s;
+ return pair<scope&, bool> (s, er.second);
}
// Find the most qualified scope that encompasses this path.