diff --git a/include/fc/static_variant.hpp b/include/fc/static_variant.hpp index 5c3695f..88069d0 100644 --- a/include/fc/static_variant.hpp +++ b/include/fc/static_variant.hpp @@ -225,7 +225,8 @@ public: if (a.which() != b.which()) return false; return typelist::runtime::dispatch(list(), a.which(), [&a, &b](auto t) { - return a.get() == b.get(); + using Value = typename decltype(t)::type; + return a.template get() == b.template get(); }); }