From 5cb5b09b198932a0d3bd985fd52fd9fbcb1c2af5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 18 Jun 2015 11:55:27 +0200 Subject: Move some utilities from build2 to libbutl --- build/target | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'build/target') diff --git a/build/target b/build/target index 1770d9c..06aa227 100644 --- a/build/target +++ b/build/target @@ -16,6 +16,8 @@ #include // move() #include +#include // compare_c_string + #include #include // map_iterator_adapter #include @@ -24,7 +26,7 @@ #include #include #include -#include // compare_*, extension_pool +#include // extension_pool namespace build { @@ -439,20 +441,18 @@ namespace build extern target_set targets; - class target_type_map: public std::map< + using target_type_map_base = std::map< const char*, std::reference_wrapper, - compare_c_string> + butl::compare_c_string>; + + class target_type_map: public target_type_map_base { public: - typedef std::map, - compare_c_string> base; - void insert (const target_type& tt) {emplace (tt.name, tt);} - using base::find; + using target_type_map_base::find; // Given a name, figure out its type, taking into account extensions, // special names (e.g., '.' and '..'), or anything else that might be -- cgit v1.1