Skip to content

Commit eb29b28

Browse files
author
Pawel Wojciechowski
committed
Update GraphQLService.h
1 parent cc42c50 commit eb29b28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/graphqlservice/GraphQLService.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ struct GraphQLBuilder
552552
if (u)
553553
return std::visit(
554554
[]<typename V>(V&& arg) {
555-
if constexpr(std::is_same_v<V,std::monostate>){
555+
if constexpr(std::is_same_v<typename std::remove_reference_t<U>::element_type,std::monostate>){
556556
throw std::logic_error("Unsupported variant type");
557557
}else{
558558
return GraphQLBuilder<T>::build(

0 commit comments

Comments
 (0)