You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,7 @@ Example:
57
57
```C++
58
58
#include "fast_float/fast_float.h"
59
59
#include <iostream>
60
+
#include <string>
60
61
61
62
int main() {
62
63
std::string input = "3.1416 xyz ";
@@ -68,6 +69,25 @@ int main() {
68
69
}
69
70
```
70
71
72
+
Though the C++17 standard has you do a comparison with `std::errc()` to check whether the conversion worked, you can avoid it by casting the result to a `bool` like so:
0 commit comments