Skip to content

Commit

Permalink
Add default copy operator for custom_allocator test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tessil committed Dec 7, 2023
1 parent f46c9c0 commit 8610e84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/custom_allocator_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ class custom_allocator {
template <typename U>
custom_allocator(const custom_allocator<U>&) {}

custom_allocator& operator=(const custom_allocator& other) = default;

pointer address(reference x) const noexcept { return &x; }

const_pointer address(const_reference x) const noexcept { return &x; }
Expand Down

0 comments on commit 8610e84

Please sign in to comment.