Commit c1f9e44d authored by Dominik Charousset's avatar Dominik Charousset

Fix build on GCC 9

parent 429d31f7
......@@ -152,7 +152,7 @@ protected:
// Discard the data if `from` contained an error. Otherwise, transfer the
// SSL context over to the refined configuration.
if (!from) {
ptr->data = std::get<error>(from.data);
ptr->data.template emplace<error>(std::get<error>(from.data));
} else if (auto* dst = ptr->as_has_ctx()) {
if (const auto* src = from.as_has_ctx()) {
dst->ctx = src->ctx;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment