aboutsummaryrefslogtreecommitdiff
path: root/build/scope
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-02-24 08:27:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-02-24 08:27:04 +0200
commitfdb050b4b1b966683ff00dd14b268fe395492358 (patch)
treeb4da8e293eef9d8682c14cf64f2ed25cc1cc75ab /build/scope
parent52925684387496e83425c79f74b29a91943466a7 (diff)
Use prefix_map for scopes, establish root scope
Diffstat (limited to 'build/scope')
-rw-r--r--build/scope7
1 files changed, 3 insertions, 4 deletions
diff --git a/build/scope b/build/scope
index 760fc03..58f7933 100644
--- a/build/scope
+++ b/build/scope
@@ -5,9 +5,8 @@
#ifndef BUILD_SCOPE
#define BUILD_SCOPE
-#include <map>
-
#include <build/path>
+#include <build/path-map>
#include <build/prerequisite>
namespace build
@@ -23,7 +22,7 @@ namespace build
private:
friend class scope_map;
- typedef std::map<path_type, scope>::const_iterator iterator;
+ typedef path_map<scope>::const_iterator iterator;
scope () = default;
@@ -37,7 +36,7 @@ namespace build
iterator i_;
};
- class scope_map: std::map<path, scope>
+ class scope_map: path_map<scope>
{
public:
scope&