We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fea2b16 commit 8baea47Copy full SHA for 8baea47
README.md
@@ -99,5 +99,20 @@ for (auto match: ctre::range(input,"[0-9]++"_ctre)) {
99
100
* clang 5.0+
101
* gcc 7.2+
102
+* MSVC 15.8.8+ (experimental, without string_literal support)
103
104
Compiler must support N3599 extension (as GNU extension in gcc and clang) or C++20 class NTTP (P0732).
105
+
106
+### MSVC
107
108
+Because current MSVC doesn't support custom templated string literals or NTTP, you need to use workaround:
109
110
+```
111
+static constexpr inline auto pattern = ctll::basic_fixed_string{ "h.*" };
112
113
+constexpr auto match(std::string_view sv) noexcept {
114
+ return ctre::re<pattern>().match(sv);
115
+}
116
117
118
+(this is tested in MSVC 15.8.8)
0 commit comments