Skip to content

Generated code produces compiler warning when schema has a field called 'value' #276

Closed
@JamesPeters98

Description

@JamesPeters98

I'm just trying out the clientgen and come accross an issue with my schema.

I have a GraphQL input type called UserDefinedFieldInput which contains a field called value, this causes a C4458 compiler warning in the =operator:

UserDefinedFieldInput& UserDefinedFieldInput::operator=(const UserDefinedFieldInput& other)
{
	UserDefinedFieldInput value { other };

	std::swap(*this, value);

	return *this;
}
warning C4458: declaration of 'value' hides class member
see declaration of 'graphql::client::GraphQL::UserDefinedFieldInput::value'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions