scanner::parse now returns Iterator, not scan_expected<Iterator>
Errors are reported by throwing a scan_format_string_error, or by calling ParseContext::on_error.
Optimize the way scan calls vscan to remove extra copies/moves
:::cpp
// Dummy-implementation of scan
// Before (v3):
auto args = make_scan_args<scan_context, Args...>();
auto result = vscan(std::forward(source), format, args);
return make_scan_result(std::move(result), std::move(args.args()));
// Now (v4):
auto result = make_scan_result<Source, Args...>();
fill_scan_result(result, vscan(std::forward(source), format,
make_scan_args(result->values())));
return result;
* Changes to scan_error
* Success state removed: use expected<void, scan_error> instead.
* scan_error::value_out_of_range split into value_positive_overflow, value_negative_overflow,
value_positive_underflow, and value_negative_overflow.
* end_of_range renamed to end_of_input.
* invalid_literal, invalid_fill, length_too_short, and invalid_source_state added.
* basic_scan_context is now templated on the range type
Features
<chrono> scanning
Scanning of pointers (void* and const void*)
Ability to disable dependency on FastFloat with SCN_DISABLE_FAST_FLOAT
FastFloat used to be the only required external dependency
If disabled, std::from_chars for floating-point values is required
With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.
You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Gen AI apps are built with MongoDB Atlas
Build gen AI apps with an all-in-one modern database: MongoDB Atlas
MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.