From 021723f1346dc54ee37967fb6a8e7219b125cc42 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 11 Jan 2022 12:40:22 +0200 Subject: Work around VC14 bug --- libbuild2/dyndep.cxx | 3 ++- libbuild2/target.hxx | 9 --------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/libbuild2/dyndep.cxx b/libbuild2/dyndep.cxx index 0865ccb..73fc8eb 100644 --- a/libbuild2/dyndep.cxx +++ b/libbuild2/dyndep.cxx @@ -550,7 +550,8 @@ namespace build2 // implied ones because pre-entered members of a target group // (e.g., cli.cxx) are implied. // - if (x->decl >= target_decl::implied) + if (x->decl == target_decl::real || + x->decl == target_decl::implied) { r = x; break; diff --git a/libbuild2/target.hxx b/libbuild2/target.hxx index d584023..4ce871b 100644 --- a/libbuild2/target.hxx +++ b/libbuild2/target.hxx @@ -137,15 +137,6 @@ namespace build2 real // Real dependency declaration. }; - inline bool - operator< (target_decl l, target_decl r) - { - return static_cast (l) < static_cast (r); - } - - inline bool - operator>= (target_decl l, target_decl r) { return !(l < r); } - class LIBBUILD2_SYMEXPORT target { public: -- cgit v1.1