summaryrefslogtreecommitdiff
path: root/compressed_pair.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compressed_pair.cc')
-rw-r--r--compressed_pair.cc4
1 files changed, 2 insertions, 2 deletions
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<T, 0>, entry<U, 1> {
};
} // namespace cpp11
-struct empty {};
-
#if __cplusplus >= 202002L
namespace cpp20 {
template <typename T, typename U>
@@ -90,6 +88,8 @@ struct pair {
// -- TEST ME ------------------------------------------------------------------
+struct empty {};
+
static_assert(sizeof(cpp11::pair<int, int>) == 8);
static_assert(sizeof(cpp11::pair<int, empty>) == 4);
static_assert(sizeof(cpp11::pair<empty, empty>) == 2);