- if (regex_match(line, sub, reg)) {
- int const n = lyx::atoi(sub[1]);
- string const str = sub[2];
+#else
+ cmatch sub;
+#endif
+ if (regex_match(STRCONV(line), sub, reg)) {
+ int const n = lyx::atoi(STRCONV(sub.str(1)));
+ string const str = STRCONV(sub.str(2));