Skip to content

Commit 57f31fd

Browse files
committed
Fix gcc error from specifying noexcept and = default
1 parent 4b15ba5 commit 57f31fd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

samples/star_wars/MutationData.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66
namespace graphql::learn {
77

8+
Mutation::Mutation() noexcept
9+
{
10+
}
11+
812
service::FieldResult<std::shared_ptr<object::Review>> Mutation::applyCreateReview(
913
service::FieldParams&& params, Episode&& epArg, ReviewInput&& reviewArg) const
1014
{

samples/star_wars/MutationData.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace graphql::learn {
1515
class Mutation : public object::Mutation
1616
{
1717
public:
18-
explicit Mutation() noexcept = default;
18+
explicit Mutation() noexcept;
1919

2020
service::FieldResult<std::shared_ptr<object::Review>> applyCreateReview(
2121
service::FieldParams&& params, Episode&& epArg, ReviewInput&& reviewArg) const final;

0 commit comments

Comments
 (0)