Skip to content

Commit

Permalink
Remove deprecated std::allocator<void>
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei L. Khandrikov authored and elsid committed May 3, 2024
1 parent 3e52437 commit b057881
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/async/tests.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,18 @@ struct mocked_executor {
return impl->on_work_finished();
}

template <class Function>
void dispatch(Function&& f, std::allocator<void>) const {
template <class Function, class Allocator>
void dispatch(Function&& f, Allocator&&) const {
return impl->dispatch(wrap_shared(std::forward<Function>(f)));
}

template <class Function>
void post(Function&& f, std::allocator<void>) const {
template <class Function, class Allocator>
void post(Function&& f, Allocator&&) const {
return impl->post(wrap_shared(std::forward<Function>(f)));
}

template <class Function>
void defer(Function&& f, std::allocator<void>) const {
template <class Function, class Allocator>
void defer(Function&& f, Allocator&&) const {
return impl->defer(wrap_shared(std::forward<Function>(f)));
}

Expand Down

0 comments on commit b057881

Please sign in to comment.