Merge pull request #158 from nathanhourt/master

Fix build on G++ 7
This commit is contained in:
Nathan Hourt 2019-09-02 09:53:20 -05:00 committed by GitHub
commit 7e69567dd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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>();
});
}