aboutsummaryrefslogtreecommitdiff
path: root/src/libutil
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-03-04 07:32:31 +0100
committereldritch horrors <pennae@lix.systems>2024-03-04 07:32:31 +0100
commitdd180911d8ecf737e6b2ceb89d6797965fcc3b78 (patch)
tree633078cc7b7f743421e04dc51ec8a4bbda76ada6 /src/libutil
parent076844e3868f108ce0d1523e2db069f7e71c9990 (diff)
Merge pull request #9582 from pennae/misc-opts
a packet of small optimizations (cherry picked from commit ee439734e924eb337a869ff2e48aff8b989198bc) Change-Id: I125d870710750a32a0dece48f39a3e9132b0d023
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/comparator.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/comparator.hh b/src/libutil/comparator.hh
index a4d20a675..cbc2bb4fd 100644
--- a/src/libutil/comparator.hh
+++ b/src/libutil/comparator.hh
@@ -13,9 +13,9 @@
#define GENERATE_ONE_CMP(PRE, QUAL, COMPARATOR, MY_TYPE, ...) \
PRE bool QUAL operator COMPARATOR(const MY_TYPE & other) const { \
__VA_OPT__(const MY_TYPE * me = this;) \
- auto fields1 = std::make_tuple( __VA_ARGS__ ); \
+ auto fields1 = std::tie( __VA_ARGS__ ); \
__VA_OPT__(me = &other;) \
- auto fields2 = std::make_tuple( __VA_ARGS__ ); \
+ auto fields2 = std::tie( __VA_ARGS__ ); \
return fields1 COMPARATOR fields2; \
}
#define GENERATE_EQUAL(prefix, qualification, my_type, args...) \