diff --git a/include/fc/io/raw.hpp b/include/fc/io/raw.hpp index 6e385832..4fa6076b 100644 --- a/include/fc/io/raw.hpp +++ b/include/fc/io/raw.hpp @@ -889,9 +889,8 @@ namespace fc { --_max_depth; unsigned_int w; fc::raw::unpack( s, w, _max_depth ); - static_variant helper( static_cast::tag_type>(w.value) ); - helper.visit( unpack_static_variant( s, _max_depth ) ); - sv = helper; + sv.set_which(w.value); + sv.visit( unpack_static_variant( s, _max_depth ) ); } } } // namespace fc::raw