aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/target.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-09-24 15:32:13 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-09-24 15:32:13 +0200
commit482d28f130511e7ce5f94dfcb03e020b4e1d9831 (patch)
tree0cdda07685ae5ce2f1b3ce1db98b3f4740db4181 /libbuild2/target.hxx
parentb6c61ea9afd2d738711770e44748e48be009154d (diff)
Fix target declaration upgrade logic
Diffstat (limited to 'libbuild2/target.hxx')
-rw-r--r--libbuild2/target.hxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/libbuild2/target.hxx b/libbuild2/target.hxx
index ec97950..73363ae 100644
--- a/libbuild2/target.hxx
+++ b/libbuild2/target.hxx
@@ -118,12 +118,6 @@ namespace build2
real // Real dependency declaration.
};
- inline bool
- operator> (target_decl l, target_decl r)
- {
- return static_cast<uint8_t> (l) > static_cast<uint8_t> (r);
- }
-
class LIBBUILD2_SYMEXPORT target
{
public:
@@ -156,8 +150,8 @@ namespace build2
const dir_path&
out_dir () const {return out.empty () ? dir : out;}
- // Note that the declaration should only be upgraded during the load phase
- // via the MT-safe target_set::insert().
+ // Note that the target declaration should only be upgraded via the MT-
+ // safe target_set::insert().
//
target_decl decl;