tahonermann / text_view

A C++ concepts and range based character encoding and code point enumeration library
MIT License
122 stars 14 forks source link

Modify the encode() and decode() encoding static member functions to return std::expected<bool> instead of throwing exceptions #7

Closed tahonermann closed 7 years ago

tahonermann commented 8 years ago

Returning std::expected instead of throwing exceptions for error conditions would enable use in applications that have exception support disabled.

tahonermann commented 7 years ago

Closing this issue as resolved by commit 9b58a2803637ceb05d7a365bc49d473645c3fe90. The encode, decode, and rdecode static member functions now return an error status instead of throwing exceptions.