Skip to content

Commit aad1dda

Browse files
committed
Let the compiler generate the default constructors
1 parent 71bbd5e commit aad1dda

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

samples/client/multiple/MultipleQueriesClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ enum class [[nodiscard]] TaskState
127127

128128
struct [[nodiscard]] CompleteTaskInput
129129
{
130-
explicit CompleteTaskInput() noexcept;
130+
explicit CompleteTaskInput() noexcept = default;
131131
explicit CompleteTaskInput(
132132
response::IdType idArg,
133133
std::optional<TaskState> testTaskStateArg,

samples/client/mutate/MutateClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ enum class [[nodiscard]] TaskState
6060

6161
struct [[nodiscard]] CompleteTaskInput
6262
{
63-
explicit CompleteTaskInput() noexcept;
63+
explicit CompleteTaskInput() noexcept = default;
6464
explicit CompleteTaskInput(
6565
response::IdType idArg,
6666
std::optional<TaskState> testTaskStateArg,

samples/client/nestedinput/NestedInputClient.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ namespace nestedinput {
4646

4747
struct [[nodiscard]] InputA
4848
{
49-
explicit InputA() noexcept;
49+
explicit InputA() noexcept = default;
5050
explicit InputA(
5151
bool aArg) noexcept;
5252
InputA(const InputA& other);
@@ -60,7 +60,7 @@ struct [[nodiscard]] InputA
6060

6161
struct [[nodiscard]] InputB
6262
{
63-
explicit InputB() noexcept;
63+
explicit InputB() noexcept = default;
6464
explicit InputB(
6565
double bArg) noexcept;
6666
InputB(const InputB& other);
@@ -76,7 +76,7 @@ struct InputBC;
7676

7777
struct [[nodiscard]] InputABCD
7878
{
79-
explicit InputABCD() noexcept;
79+
explicit InputABCD() noexcept = default;
8080
explicit InputABCD(
8181
std::string dArg,
8282
InputA aArg,
@@ -98,7 +98,7 @@ struct [[nodiscard]] InputABCD
9898

9999
struct [[nodiscard]] InputBC
100100
{
101-
explicit InputBC() noexcept;
101+
explicit InputBC() noexcept = default;
102102
explicit InputBC(
103103
response::IdType cArg,
104104
InputB bArg) noexcept;

src/ClientGenerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ static_assert(graphql::internal::MinorVersion == )cpp"
280280
{
281281
if (firstField)
282282
{
283-
headerFile << R"cpp() noexcept;
283+
headerFile << R"cpp() noexcept = default;
284284
explicit )cpp" << cppType
285285
<< R"cpp(()cpp";
286286
}

0 commit comments

Comments
 (0)