Skip to content

Commit

Permalink
Merge pull request #185 from wravery/next
Browse files Browse the repository at this point in the history
Minor fixes from testing with the vcpkg port and gqlmapi
  • Loading branch information
wravery committed Dec 15, 2021
2 parents f05a238 + 7952633 commit 9ffd6f0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions include/graphqlservice/GraphQLService.h
Original file line number Diff line number Diff line change
Expand Up @@ -663,9 +663,11 @@ struct ModifiedArgument

// Peel off the none modifier. If it's included, it should always be last in the list.
template <TypeModifier Modifier = TypeModifier::None, TypeModifier... Other>
static typename std::enable_if_t<TypeModifier::None == Modifier && sizeof...(Other) == 0, Type>
require(std::string_view name, const response::Value& arguments)
static typename std::enable_if_t<TypeModifier::None == Modifier, Type> require(
std::string_view name, const response::Value& arguments)
{
static_assert(sizeof...(Other) == 0, "None modifier should always be last");

// Just call through to the non-template method without the modifiers.
return require(name, arguments);
}
Expand Down
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ install(FILES
${CMAKE_CURRENT_SOURCE_DIR}/../include/graphqlservice/internal/Awaitable.h
${CMAKE_CURRENT_SOURCE_DIR}/../include/graphqlservice/internal/Base64.h
${CMAKE_CURRENT_SOURCE_DIR}/../include/graphqlservice/internal/Grammar.h
${CMAKE_CURRENT_SOURCE_DIR}/../include/graphqlservice/internal/Introspection.h
${CMAKE_CURRENT_SOURCE_DIR}/../include/graphqlservice/internal/Schema.h
${CMAKE_CURRENT_SOURCE_DIR}/../include/graphqlservice/internal/SortedMap.h
${CMAKE_CURRENT_SOURCE_DIR}/../include/graphqlservice/internal/SyntaxTree.h
Expand Down
2 changes: 1 addition & 1 deletion src/SchemaGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2874,7 +2874,7 @@ using namespace std::literals;

if (!_loader.isIntrospection())
{
if (!objectType.interfaces.empty())
if (!objectType.interfaces.empty() || !objectType.unions.empty())
{
NamespaceScope implementsNamespace { headerFile, R"cpp(implements)cpp" };

Expand Down

0 comments on commit 9ffd6f0

Please sign in to comment.