diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-02 08:17:00 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-02 08:17:00 +0200 |
commit | e8945fbb15e472afca16fe1c3f36997742a2d64a (patch) | |
tree | 83d3d4bd7606b5ce62686afd5efb874e246fa443 /build/types | |
parent | 39623df224608e77b5a62dabd35b09783198bc87 (diff) |
Common types cleanup (strings, cstrings)
Diffstat (limited to 'build/types')
-rw-r--r-- | build/types | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/build/types b/build/types index 5f6b3de..0a71252 100644 --- a/build/types +++ b/build/types @@ -6,6 +6,7 @@ #define BUILD_TYPES #include <vector> +#include <string> #include <butl/path> #include <butl/timestamp> @@ -16,6 +17,8 @@ namespace build { // Commonly-used types. // + using strings = std::vector<std::string>; + using cstrings = std::vector<const char*>; // <butl/path> // @@ -24,6 +27,9 @@ namespace build using butl::basic_path; using butl::invalid_path; + using paths = std::vector<path>; + using dir_paths = std::vector<dir_path>; + // <butl/timestamp> // using butl::system_clock; @@ -32,9 +38,6 @@ namespace build using butl::timestamp_unknown; using butl::timestamp_nonexistent; using butl::operator<<; - - typedef std::vector<path> paths; - typedef std::vector<dir_path> dir_paths; } #endif // BUILD_TYPES |