aboutsummaryrefslogtreecommitdiff
path: root/build/variable
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-13 15:50:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-13 15:50:17 +0200
commitace1743f7f78bb13f99553d6e97ad1beecf1ba99 (patch)
tree595bc9dad989e44f4be9a67e351219f3248dc5f0 /build/variable
parent534f9d8db025d58c9ce23f3b81a37e8c34386a27 (diff)
Add separate type to represent directory paths
Diffstat (limited to 'build/variable')
-rw-r--r--build/variable15
1 files changed, 4 insertions, 11 deletions
diff --git a/build/variable b/build/variable
index 1365d54..f994b58 100644
--- a/build/variable
+++ b/build/variable
@@ -69,10 +69,7 @@ namespace build
public:
list_value (names d): names (std::move (d)) {}
list_value (std::string d) {emplace_back (std::move (d));}
-
- // Note: stored in name as a directory.
- //
- list_value (path d) {emplace_back (std::move (d));}
+ list_value (dir_path d) {emplace_back (std::move (d));}
virtual value_ptr
clone () const {return value_ptr (new list_value (*this));}
@@ -122,10 +119,8 @@ namespace build
const value_proxy&
operator= (std::string) const;
- // Note: stored in name as a directory.
- //
const value_proxy&
- operator= (path) const;
+ operator= (dir_path) const;
// Implementation details.
//
@@ -155,11 +150,9 @@ namespace build
const std::string& value_proxy::
as<const std::string&> () const;
- // Note: get the name's dir.
- //
template <>
- const path& value_proxy::
- as<const path&> () const;
+ const dir_path& value_proxy::
+ as<const dir_path&> () const;
}
namespace std