Skip to content

Commit 44c6b9b

Browse files
authored
Merge pull request diffblue#131 from diffblue/marek/pch_forgotten_op_less_PR
Added operator less for class argidx_and_tokennamet.
2 parents fd3ed42 + 80ff08a commit 44c6b9b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/taint-slicer/propagation_chains.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ class argidx_and_tokennamet
4949
int argidx;
5050
taint_tokent::namet tokenname;
5151
};
52+
inline bool operator<(
53+
const argidx_and_tokennamet &l, const argidx_and_tokennamet &r)
54+
{
55+
return std::make_pair(l.get_argidx(), l.get_token_name())<
56+
std::make_pair(r.get_argidx(), r.get_token_name());
57+
}
5258
std::ostream &operator<<(std::ostream &ostr, const argidx_and_tokennamet &atp);
5359

5460
/*******************************************************************\

0 commit comments

Comments
 (0)