mirror of
https://github.com/boostorg/redis.git
synced 2026-01-19 04:42:09 +00:00
Defined done_fn_type in adapters.hpp
This commit is contained in:
committed by
Marcelo Zimbres
parent
ecd1573257
commit
5444e077f9
@@ -139,14 +139,16 @@ void boost_redis_from_bulk(T& t, resp3::basic_node<String> const& node, system::
|
||||
|
||||
//================================================
|
||||
|
||||
using done_fn_type = std::function<void()>;
|
||||
|
||||
template <typename T>
|
||||
auto prepare_done(T&) noexcept -> std::function<void()>
|
||||
auto prepare_done(T&) noexcept -> done_fn_type
|
||||
{
|
||||
return [] { };
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
auto prepare_done(generic_flat_response& resp) noexcept -> std::function<void()>
|
||||
auto prepare_done(generic_flat_response& resp) noexcept -> done_fn_type
|
||||
{
|
||||
return [resp]() mutable {
|
||||
if (resp.has_value()) {
|
||||
|
||||
Reference in New Issue
Block a user