From d2f7bd5e0aaa51f52fb0785c84c0f28fde84f5a5 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Mon, 7 Oct 2024 20:59:55 +0200 Subject: minor cleanups --- compressed_pair.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compressed_pair.cc') diff --git a/compressed_pair.cc b/compressed_pair.cc index 873c4ce..f044f29 100644 --- a/compressed_pair.cc +++ b/compressed_pair.cc @@ -68,8 +68,6 @@ struct pair : entry, entry { }; } // namespace cpp11 -struct empty {}; - #if __cplusplus >= 202002L namespace cpp20 { template @@ -90,6 +88,8 @@ struct pair { // -- TEST ME ------------------------------------------------------------------ +struct empty {}; + static_assert(sizeof(cpp11::pair) == 8); static_assert(sizeof(cpp11::pair) == 4); static_assert(sizeof(cpp11::pair) == 2); -- cgit v1.2.3