From 7817d08a8a3c9dee2a8c8da7aee1ad369ee1f12e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 18 Jun 2015 14:47:24 +0200 Subject: Move string-table from build2 to libbutl --- build/operation | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'build/operation') diff --git a/build/operation b/build/operation index 51c9f88..be483a9 100644 --- a/build/operation +++ b/build/operation @@ -11,8 +11,9 @@ #include #include // reference_wrapper +#include + #include -#include 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>; - using operation_table = string_table< + using operation_table = butl::string_table< operation_id, std::reference_wrapper>; +} +namespace butl +{ template <> - struct string_table_traits> + struct string_table_traits< + std::reference_wrapper> { 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> + struct string_table_traits< + std::reference_wrapper> { static const std::string& - key (const operation_info& x) {return x.name;} + key (const build::operation_info& x) {return x.name;} }; } -- cgit v1.1