Fix build on updated G++

This commit is contained in:
Nathan Hourt 2019-09-01 12:53:01 -05:00
parent 4b7bcb951d
commit 1699b0ac36

View file

@ -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<typename decltype(t)::type>() == b.get<typename decltype(t)::type>();
using Value = typename decltype(t)::type;
return a.template get<Value>() == b.template get<Value>();
});
}