Skip to content

Commit d6b2de9

Browse files
committed
fix MSVC build
1 parent 818d87c commit d6b2de9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/msgpack/v1/adaptor/cpp17/variant.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ MSGPACK_API_VERSION_NAMESPACE(v1) {
4646
} // namespace detail
4747

4848
template <typename... Ts>
49-
struct as<std::variant<Ts...>, std::enable_if_t<(msgpack::has_as<Ts>::value && ...)>> {
49+
struct as<std::variant<Ts...>, typename std::enable_if<(msgpack::has_as<Ts>::value && ...)>::type> {
5050
std::variant<Ts...> operator()(msgpack::object const &o) const {
5151
if (o.type != msgpack::type::ARRAY) {
5252
throw msgpack::type_error{};

0 commit comments

Comments
 (0)