workaround for an issue with clang 6

This commit is contained in:
Michele Caini
2019-10-19 22:08:11 +02:00
parent 2382d2e21c
commit 4376bbe40b

View File

@@ -712,9 +712,9 @@ class extended_meta_factory: public meta_factory<Type> {
}
template<typename Func>
auto unpack(choice_t<1>, Func func)
-> decltype(unpack(choice<3>, func())) {
unpack(choice<3>, func());
std::enable_if_t<std::is_invocable_v<Func>, void>
unpack(choice_t<1>, Func &&func) {
unpack(choice<3>, std::forward<Func>(func)());
}
template<typename Key, typename... Value>