Skip to content

Add try_decode and make decoders return errors instead of throwing - #21

Merged
jonatanklosko merged 1 commit into
mainfrom
jk-try-decode
Nov 3, 2026
Merged

jonatanklosko merged 1 commit into
mainfrom
jk-try-decode

Conversation

@jonatanklosko

Copy link
Copy Markdown
Member

This makes decoding faster for types such as std::variant, which would try-catch every attempt, and now they can check the result for error instead.

See dashbitco/lazy_html#46 for relevance.

@jonatanklosko
jonatanklosko merged commit 5821c90 into main Nov 3, 2026
7 checks passed
@jonatanklosko
jonatanklosko deleted the jk-try-decode branch November 3, 2026 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant