Skip to content

Commit eea8c73

Browse files
committed
Handle explicit copy constructors
1 parent 264962a commit eea8c73

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/graphqlservice/GraphQLClient.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ struct ModifiedVariable
160160
duplicate(const Type& value)
161161
{
162162
// Just copy the value.
163-
return { value };
163+
return Type { value };
164164
}
165165

166166
// Peel off nullable modifiers.
@@ -176,7 +176,7 @@ struct ModifiedVariable
176176
if constexpr (isInputType<Type>() && onlyNoneModifiers<Other...>())
177177
{
178178
// Special case duplicating the std::unique_ptr.
179-
result = std::make_unique<Type>(*nullableValue);
179+
result = std::make_unique<Type>(Type { *nullableValue });
180180
}
181181
else
182182
{

include/graphqlservice/GraphQLService.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ struct ModifiedArgument
755755
duplicate(const Type& value)
756756
{
757757
// Just copy the value.
758-
return { value };
758+
return Type { value };
759759
}
760760

761761
// Peel off nullable modifiers.
@@ -771,7 +771,7 @@ struct ModifiedArgument
771771
if constexpr (isInputType<Type>() && onlyNoneModifiers<Other...>())
772772
{
773773
// Special case duplicating the std::unique_ptr.
774-
result = std::make_unique<Type>(*nullableValue);
774+
result = std::make_unique<Type>(Type { *nullableValue });
775775
}
776776
else
777777
{

0 commit comments

Comments
 (0)