Skip to content

Commit

Permalink
Fix derp
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Jun 3, 2020
1 parent 33efd8c commit bb77cec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/std/tests/P0122R7_span/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ static_assert(is_standard_layout_v<span<int>>);
static_assert(is_standard_layout_v<span<int, 4>>);

#if __has_cpp_attribute(no_unique_address)
static_assert(sizeof(span<int>) == sizeof(void*));
static_assert(sizeof(span<int, 4>) == sizeof(void*));
#else // ^^^ has no_unique_address ^^^ / vvv no no_unique_address vvv
static_assert(sizeof(span<int>) == sizeof(void*) + sizeof(size_t));
#endif // no no_unique_address vvv
static_assert(sizeof(span<int, 4>) == sizeof(void*) + sizeof(size_t));
#endif // no no_unique_address vvv
static_assert(sizeof(span<int>) == sizeof(void*) + sizeof(size_t));

static_assert(is_same_v<decltype(dynamic_extent), const size_t>);
static_assert(dynamic_extent == static_cast<size_t>(-1));
Expand Down

0 comments on commit bb77cec

Please sign in to comment.