Skip to content

Commit 7e69567

Browse files
Merge pull request #158 from nathanhourt/master
Fix build on G++ 7
2 parents 4b7bcb9 + 1699b0a commit 7e69567

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/fc/static_variant.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@ class static_variant {
225225
if (a.which() != b.which())
226226
return false;
227227
return typelist::runtime::dispatch(list(), a.which(), [&a, &b](auto t) {
228-
return a.get<typename decltype(t)::type>() == b.get<typename decltype(t)::type>();
228+
using Value = typename decltype(t)::type;
229+
return a.template get<Value>() == b.template get<Value>();
229230
});
230231
}
231232

0 commit comments

Comments
 (0)