Skip to content

Commit b57272f

Browse files
committed
fix(modules): switch to inline namespace in GraphQLParse.h
1 parent 129d69f commit b57272f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

include/graphqlservice/GraphQLParse.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,14 @@ struct [[nodiscard("unnecessary parse")]] ast
2525
bool validated = false;
2626
};
2727

28+
inline namespace constants {
29+
2830
// By default, we want to limit the depth of nested nodes. You can override this with
2931
// another value for the depthLimit parameter in these parse functions.
3032
constexpr std::size_t c_defaultDepthLimit = 25;
3133

34+
} // namespace constants
35+
3236
[[nodiscard("unnecessary parse")]] GRAPHQLPEG_EXPORT ast parseSchemaString(
3337
std::string_view input, std::size_t depthLimit = c_defaultDepthLimit);
3438
[[nodiscard("unnecessary parse")]] GRAPHQLPEG_EXPORT ast parseSchemaFile(

include/graphqlservice/Parse.ixx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ using peg::ast_node;
1616
using peg::ast_input;
1717
using peg::ast;
1818

19-
namespace constants {
20-
21-
constexpr std::size_t c_defaultDepthLimit = peg::c_defaultDepthLimit;
22-
23-
} // namespace constants
19+
constexpr std::size_t c_defaultDepthLimit = constants::c_defaultDepthLimit;
2420

2521
using peg::parseSchemaString;
2622
using peg::parseSchemaFile;

0 commit comments

Comments
 (0)