Simplify tests

This commit is contained in:
rbrugo 2022-03-11 19:37:57 +01:00
parent d02079a40f
commit b9f4f14b28

View File

@ -70,16 +70,12 @@ struct box {
int value;
};
auto begin(box& b) noexcept -> int* { return std::addressof(b.value); }
auto end(box& b) noexcept -> int* { return std::addressof(b.value) + 1; }
auto begin(const box& b) noexcept -> const int* {
return std::addressof(b.value);
auto begin(const box& b) -> const int* {
return &b.value;
}
auto end(const box& b) noexcept -> const int* {
return std::addressof(b.value) + 1;
auto end(const box& b) -> const int* {
return &b.value + 1;
}
} // namespace adl