aboutsummaryrefslogtreecommitdiff
path: root/build/operation
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-18 14:47:24 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-06-18 14:47:24 +0200
commit7817d08a8a3c9dee2a8c8da7aee1ad369ee1f12e (patch)
treecc420e7b4301cc8fbe07484bc4d0391eb16ae880 /build/operation
parent63e7a4a77cb8ceed7b42561fe3202b0b48d86db6 (diff)
Move string-table from build2 to libbutl
Diffstat (limited to 'build/operation')
-rw-r--r--build/operation20
1 files changed, 13 insertions, 7 deletions
diff --git a/build/operation b/build/operation
index 51c9f88..be483a9 100644
--- a/build/operation
+++ b/build/operation
@@ -11,8 +11,9 @@
#include <cstdint>
#include <functional> // reference_wrapper
+#include <butl/string-table>
+
#include <build/types>
-#include <build/string-table>
namespace build
{
@@ -213,26 +214,31 @@ namespace build
// Meta/operation tables.
//
- using meta_operation_table = string_table<
+ using meta_operation_table = butl::string_table<
meta_operation_id,
std::reference_wrapper<const meta_operation_info>>;
- using operation_table = string_table<
+ using operation_table = butl::string_table<
operation_id,
std::reference_wrapper<const operation_info>>;
+}
+namespace butl
+{
template <>
- struct string_table_traits<std::reference_wrapper<const meta_operation_info>>
+ struct string_table_traits<
+ std::reference_wrapper<const build::meta_operation_info>>
{
static const std::string&
- key (const meta_operation_info& x) {return x.name;}
+ key (const build::meta_operation_info& x) {return x.name;}
};
template <>
- struct string_table_traits<std::reference_wrapper<const operation_info>>
+ struct string_table_traits<
+ std::reference_wrapper<const build::operation_info>>
{
static const std::string&
- key (const operation_info& x) {return x.name;}
+ key (const build::operation_info& x) {return x.name;}
};
}