Skip to content

Commit

Permalink
msvc 14.1 workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
anarthal committed Dec 11, 2023
1 parent 892eb24 commit c0b9ba4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions include/boost/mysql/detail/connection_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ class connection_impl
};

// Connect
static connect_algo_params make_params_connect(diagnostics& diag, const handshake_params& params) noexcept
{
return connect_algo_params{&diag, params};
}

template <class EndpointType>
struct connect_initiation
{
Expand All @@ -151,7 +156,7 @@ class connection_impl
)
{
stream->set_endpoint(&endpoint);
async_run_algo(*stream, *st, connect_algo_params{diag, params}, std::forward<Handler>(handler));
async_run_algo(*stream, *st, make_params_connect(*diag, params), std::forward<Handler>(handler));
}
};

Expand Down Expand Up @@ -262,7 +267,7 @@ class connection_impl
)
{
stream_->set_endpoint(&endpoint);
run_algo(*stream_, *st_, connect_algo_params{&diag, params}, err);
run_algo(*stream_, *st_, make_params_connect(diag, params), err);
}

template <class EndpointType, class CompletionToken>
Expand Down

0 comments on commit c0b9ba4

Please sign in to comment.