Skip to content

Commit

Permalink
Fix derp
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Nov 26, 2021
1 parent 7143402 commit 6b0e607
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/std/tests/P0980R1_constexpr_strings/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2103,7 +2103,7 @@ constexpr void test_swap(const size_t id1, const size_t id2) {
}

template <class CharType>
constexpr void test_allocator_awareness() {
constexpr bool test_allocator_awareness() {
test_copy_ctor<CharType>();
test_copy_alloc_ctor<CharType>(11, 11); // equal allocators
test_copy_alloc_ctor<CharType>(11, 22); // non-equal allocators
Expand All @@ -2128,10 +2128,12 @@ constexpr void test_allocator_awareness() {
test_swap<CharType, SwapAlloc<CharType>>(11, 11); // POCS, equal allocators
test_swap<CharType, SwapAlloc<CharType>>(11, 22); // POCS, non-equal allocators
test_swap<CharType, SwapEqualAlloc<CharType>>(11, 22); // POCS, always-equal allocators

return true;
}

template <class CharType>
constexpr bool test_all() {
constexpr void test_all() {
test_interface<CharType>();
test_iterators<CharType>();
test_growth<CharType>();
Expand All @@ -2143,8 +2145,6 @@ constexpr bool test_all() {
static_assert(test_growth<CharType>());
static_assert(test_allocator_awareness<CharType>());
#endif // __EDG__

return true;
}

int main() {
Expand Down

0 comments on commit 6b0e607

Please sign in to comment.