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