Unverified Commit b99bec58 authored by Adrià Arrufat's avatar Adrià Arrufat Committed by GitHub
Browse files

Fix serialize variant with C++17 (#2365)

* Fix serialize variant with C++17

* fix order of parameters
parent 9697fa5d
......@@ -1238,7 +1238,7 @@ namespace dlib
if (I == index)
{
auto& x = item.template emplace<std::variant_alternative_t<I,Variant>>();
deserialize(bin, x);
deserialize(x, in);
}
else
{
......
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