Skip to content

Commit cd454fd

Browse files
committed
Fix template param
1 parent 6e2568b commit cd454fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/test/std/utilities/memory/allocator.traits/allocator.traits.members/allocate_at_least.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ constexpr bool test() {
4646
{ // check that std::allocate_at_least forwards to allocator::allocate if no allocate_at_least exists
4747
no_allocate_at_least<int> alloc;
4848
using AllocTraits = std::allocator_traits<decltype(alloc)>;
49-
std::same_as<std::allocation_result<int*>, AllocTraits::size_type> decltype(auto) ret =
49+
std::same_as<std::allocation_result<int*, AllocTraits::size_type>> decltype(auto) ret =
5050
AllocTraits::allocate_at_least(alloc, 1);
5151
assert(ret.count == 1);
5252
assert(ret.ptr == &alloc.t);
@@ -55,7 +55,7 @@ constexpr bool test() {
5555
{ // check that std::allocate_at_least forwards to allocator::allocate_at_least if allocate_at_least exists
5656
has_allocate_at_least<int> alloc;
5757
using AllocTraits = std::allocator_traits<decltype(alloc)>;
58-
std::same_as<std::allocation_result<int*>, AllocTraits::size_type> decltype(auto) ret =
58+
std::same_as<std::allocation_result<int*, AllocTraits::size_type>> decltype(auto) ret =
5959
AllocTraits::allocate_at_least(alloc, 1);
6060
assert(ret.count == 2);
6161
assert(ret.ptr == &alloc.t2);

0 commit comments

Comments
 (0)