Skip to content

Commit 5ddf2b5

Browse files
author
Rafał Hibner
committed
Fix msvc build
1 parent 2129e86 commit 5ddf2b5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

include/graphqlservice/GraphQLService.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -562,10 +562,9 @@ struct GraphQLBuilder
562562
if (u)
563563
return std::visit(
564564
[]<typename V>(V&& arg) {
565-
using model_t =
566-
typename GraphQLUnion<typename std::remove_reference_t<U>::element_type,
567-
typename T::element_type>::model_map::
568-
find<typename std::remove_reference_t<V>::element_type>;
565+
using union_t = GraphQLUnion<typename std::remove_reference_t<U>::element_type, typename T::element_type>;
566+
using model_map_t = typename union_t::model_map;
567+
using model_t = typename model_map_t::find<typename std::remove_reference_t<V>::element_type>;
569568
if constexpr (std::is_same_v<model_t, std::monostate>)
570569
{
571570
throw std::logic_error("Unsupported variant type");

0 commit comments

Comments
 (0)