We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 818d87c commit d6b2de9Copy full SHA for d6b2de9
include/msgpack/v1/adaptor/cpp17/variant.hpp
@@ -46,7 +46,7 @@ MSGPACK_API_VERSION_NAMESPACE(v1) {
46
} // namespace detail
47
48
template <typename... Ts>
49
- struct as<std::variant<Ts...>, std::enable_if_t<(msgpack::has_as<Ts>::value && ...)>> {
+ struct as<std::variant<Ts...>, typename std::enable_if<(msgpack::has_as<Ts>::value && ...)>::type> {
50
std::variant<Ts...> operator()(msgpack::object const &o) const {
51
if (o.type != msgpack::type::ARRAY) {
52
throw msgpack::type_error{};
0 commit comments