test: minor changes

This commit is contained in:
Michele Caini
2024-05-09 09:12:29 +02:00
parent f7e533d061
commit e2648e418f
2 changed files with 4 additions and 4 deletions

View File

@@ -9,11 +9,11 @@ struct aggregate {
int value{};
};
inline bool operator==(const aggregate &lhs, const aggregate &rhs) {
[[nodiscard]] inline bool operator==(const aggregate &lhs, const aggregate &rhs) {
return lhs.value == rhs.value;
}
inline bool operator<(const aggregate &lhs, const aggregate &rhs) {
[[nodiscard]] inline bool operator<(const aggregate &lhs, const aggregate &rhs) {
return lhs.value < rhs.value;
}

View File

@@ -8,11 +8,11 @@ struct pointer_stable {
int value{};
};
inline bool operator==(const pointer_stable &lhs, const pointer_stable &rhs) {
[[nodiscard]] inline bool operator==(const pointer_stable &lhs, const pointer_stable &rhs) {
return lhs.value == rhs.value;
}
inline bool operator<(const pointer_stable &lhs, const pointer_stable &rhs) {
[[nodiscard]] inline bool operator<(const pointer_stable &lhs, const pointer_stable &rhs) {
return lhs.value < rhs.value;
}