@@ -14,13 +14,13 @@ namespace ctre {
1414// in C++17 (clang & gcc with gnu extension) we need translate character pack into basic_fixed_string
1515// in C++20 we have `class nontype template parameters`
1616
17- #if !__has_cpp_attribute( __cpp_nontype_template_parameter_class)
17+ #if !__cpp_nontype_template_parameter_class
1818template <typename CharT, CharT... input> static inline constexpr auto _fixed_string_reference = ctll::basic_fixed_string<CharT, sizeof ...(input)>({input...});
1919#endif
2020
2121namespace literals {
2222
23- #if !__has_cpp_attribute( __cpp_nontype_template_parameter_class)
23+ #if !__cpp_nontype_template_parameter_class
2424template <typename CharT, CharT... charpack> __attribute__ ((flatten)) constexpr CTRE_FORCE_INLINE auto operator""_fixed_pcre() noexcept {
2525 constexpr auto & input = _fixed_string_reference<CharT, charpack...>;
2626#else
@@ -35,7 +35,7 @@ template <basic_fixed_string input> __attribute__((flatten)) constexpr CTRE_FORC
3535// add this when we will have concepts
3636// requires ctll::parser<ctre::pcre, _fixed_string_reference<CharT, charpack...>, ctre::pcre_actions>::template correct_with<pcre_context<>>
3737
38- #if !__has_cpp_attribute( __cpp_nontype_template_parameter_class)
38+ #if !__cpp_nontype_template_parameter_class
3939template <typename CharT, CharT... charpack> __attribute__ ((flatten)) constexpr CTRE_FORCE_INLINE auto operator " " _pcre () noexcept {
4040 constexpr auto & input = _fixed_string_reference<CharT, charpack...>;
4141#else
@@ -53,7 +53,7 @@ template <basic_fixed_string input> __attribute__((flatten)) constexpr CTRE_FORC
5353// add this when we will have concepts
5454// requires ctll::parser<ctre::pcre, _fixed_string_reference<CharT, charpack...>, ctre::pcre_actions>::template correct_with<pcre_context<>>
5555
56- #if !__has_cpp_attribute( __cpp_nontype_template_parameter_class)
56+ #if !__cpp_nontype_template_parameter_class
5757template <typename CharT, CharT... charpack> __attribute__ ((flatten)) constexpr CTRE_FORCE_INLINE auto operator " " _ctre () noexcept {
5858 constexpr auto & input = _fixed_string_reference<CharT, charpack...>;
5959#else
@@ -76,7 +76,7 @@ template <typename CharT, CharT... charpack> __attribute__((flatten)) constexpr
7676
7777namespace test_literals {
7878
79- #if !__has_cpp_attribute( __cpp_nontype_template_parameter_class)
79+ #if !__cpp_nontype_template_parameter_class
8080template <typename CharT, CharT... charpack> __attribute__ ((flatten)) constexpr inline auto operator""_pcre_test() noexcept {
8181 constexpr auto & input = _fixed_string_reference<CharT, charpack...>;
8282#else
@@ -85,7 +85,7 @@ template <basic_fixed_string input> __attribute__((flatten)) constexpr inline au
8585 return ctll::parser<ctre::pcre, input>::correct;
8686}
8787
88- #if !__has_cpp_attribute( __cpp_nontype_template_parameter_class)
88+ #if !__cpp_nontype_template_parameter_class
8989template <typename CharT, CharT... charpack> __attribute__ ((flatten)) constexpr inline auto operator " " _pcre_gen () noexcept {
9090 constexpr auto & input = _fixed_string_reference<CharT, charpack...>;
9191#else
@@ -97,7 +97,7 @@ template <basic_fixed_string input> __attribute__((flatten)) constexpr inline au
9797}
9898
9999
100- #if !__has_cpp_attribute( __cpp_nontype_template_parameter_class)
100+ #if !__cpp_nontype_template_parameter_class
101101template <typename CharT, CharT... charpack> __attribute__ ((flatten)) constexpr CTRE_FORCE_INLINE auto operator " " _pcre_syntax () noexcept {
102102 constexpr auto & input = _fixed_string_reference<CharT, charpack...>;
103103#else
@@ -107,7 +107,7 @@ template <basic_fixed_string input> __attribute__((flatten)) constexpr CTRE_FORC
107107}
108108
109109
110- #if !__has_cpp_attribute( __cpp_nontype_template_parameter_class)
110+ #if !__cpp_nontype_template_parameter_class
111111template <typename CharT, CharT... charpack> __attribute__ ((flatten)) constexpr inline auto operator " " _simple_test () noexcept {
112112 constexpr auto & input = _fixed_string_reference<CharT, charpack...>;
113113#else
0 commit comments