Skip to content

Commit ec6a44b

Browse files
authored
The to_string function should be included when we log, even if testing is not enabled (#973)
1 parent 77ff26a commit ec6a44b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/ada/url_pattern_helpers-inl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#if ADA_INCLUDE_URL_PATTERN
1717
namespace ada::url_pattern_helpers {
18-
#ifdef ADA_TESTING
18+
#if defined(ADA_TESTING) || defined(ADA_LOGGING)
1919
inline std::string to_string(token_type type) {
2020
switch (type) {
2121
case token_type::INVALID_CHAR:
@@ -42,7 +42,7 @@ inline std::string to_string(token_type type) {
4242
ada::unreachable();
4343
}
4444
}
45-
#endif // ADA_TESTING
45+
#endif // defined(ADA_TESTING) || defined(ADA_LOGGING)
4646

4747
template <url_pattern_regex::regex_concept regex_provider>
4848
constexpr void constructor_string_parser<regex_provider>::rewind() {

0 commit comments

Comments
 (0)