File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -663,9 +663,11 @@ struct ModifiedArgument
663
663
664
664
// Peel off the none modifier. If it's included, it should always be last in the list.
665
665
template <TypeModifier Modifier = TypeModifier::None, TypeModifier... Other>
666
- static typename std::enable_if_t <TypeModifier::None == Modifier && sizeof ...(Other) == 0 , Type>
667
- require ( std::string_view name, const response::Value& arguments)
666
+ static typename std::enable_if_t <TypeModifier::None == Modifier, Type> require (
667
+ std::string_view name, const response::Value& arguments)
668
668
{
669
+ static_assert (sizeof ...(Other) == 0 , " None modifier should always be last" );
670
+
669
671
// Just call through to the non-template method without the modifiers.
670
672
return require (name, arguments);
671
673
}
Original file line number Diff line number Diff line change @@ -452,6 +452,7 @@ install(FILES
452
452
${CMAKE_CURRENT_SOURCE_DIR} /../include/graphqlservice/internal/Awaitable.h
453
453
${CMAKE_CURRENT_SOURCE_DIR} /../include/graphqlservice/internal/Base64.h
454
454
${CMAKE_CURRENT_SOURCE_DIR} /../include/graphqlservice/internal/Grammar.h
455
+ ${CMAKE_CURRENT_SOURCE_DIR} /../include/graphqlservice/internal/Introspection.h
455
456
${CMAKE_CURRENT_SOURCE_DIR} /../include/graphqlservice/internal/Schema.h
456
457
${CMAKE_CURRENT_SOURCE_DIR} /../include/graphqlservice/internal/SortedMap.h
457
458
${CMAKE_CURRENT_SOURCE_DIR} /../include/graphqlservice/internal/SyntaxTree.h
Original file line number Diff line number Diff line change @@ -2874,7 +2874,7 @@ using namespace std::literals;
2874
2874
2875
2875
if (!_loader.isIntrospection ())
2876
2876
{
2877
- if (!objectType.interfaces .empty ())
2877
+ if (!objectType.interfaces .empty () || !objectType. unions . empty () )
2878
2878
{
2879
2879
NamespaceScope implementsNamespace { headerFile, R"cpp( implements)cpp" };
2880
2880
You can’t perform that action at this time.
0 commit comments