From 1699b0ac36bf8fa1ae98f416b0158946fa28e1ee Mon Sep 17 00:00:00 2001 From: Nathan Hourt Date: Sun, 1 Sep 2019 12:53:01 -0500 Subject: [PATCH] Fix build on updated G++ --- include/fc/static_variant.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); }); }