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 92822ec commit a3cd44fCopy full SHA for a3cd44f
include/graphqlservice/GraphQLService.h
@@ -428,9 +428,16 @@ template <typename T>
428
class [[nodiscard]] AwaitableObject
429
{
430
public:
431
+
432
template <typename U>
- AwaitableObject(U&& value)
433
- : _value { std::forward<U>(value) }
+ AwaitableObjectTest(U&& value, std::enable_if_t<std::is_assignable_v<T,U>>* = nullptr)
434
+ : _value { std::forward<U>(value) }
435
+ {
436
+ }
437
438
+ template <typename U>
439
+ AwaitableObjectTest(U&& value,std::enable_if_t<!std::is_assignable_v<T,U>>* = nullptr)
440
+ : _value ( std::make_shared<typename T::element_type>(value) )
441
442
}
443
0 commit comments