Skip to content

Commit b9cb488

Browse files
author
Hana Dusíková
committed
char_conv is not in xcode
1 parent 3cf637a commit b9cb488

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

tests/results.cpp

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,17 @@ int main() {
2424
if ("456" == capture) std::cout << "bingo: ";
2525
if ("768" != capture) std::cout << "bad: ";
2626

27-
int value = 0;
28-
auto [ptr, err] = std::from_chars(std::data(match), std::data(match)+std::size(match), value);
29-
if (err == std::errc{}) {
30-
std::cout << value << "\n";
31-
} else {
32-
std::cout << "error\n";
33-
}
27+
[[maybe_unused]] const char * ptr = std::data(match);
28+
[[maybe_unused]] size_t length = std::size(match);
29+
30+
[[maybe_unused]] const char * ptr2 = std::data(capture);
31+
[[maybe_unused]] size_t length2 = std::size(capture);
32+
33+
//auto [ptr, err] = std::from_chars(std::data(match), std::data(match)+std::size(match), value);
34+
//if (err == std::errc{}) {
35+
// std::cout << value << "\n";
36+
//} else {
37+
// std::cout << "error\n";
38+
//}
3439
}
3540
}

0 commit comments

Comments
 (0)