Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std::span, std::byte, char8_t, etc (C++20) #69

Open
Wunkolo opened this issue Jan 4, 2021 · 0 comments
Open

std::span, std::byte, char8_t, etc (C++20) #69

Wunkolo opened this issue Jan 4, 2021 · 0 comments

Comments

@Wunkolo
Copy link
Contributor

Wunkolo commented Jan 4, 2021

std::span, std::byte, char8_t and such are currently supported in a lot of compilers out there and I feel like mio would directly benefit from some of these features. Right now mio implements a source/sink pattern for its common use case and uses char/unsigned char specializations and implements the begin, cbegin, rbegin, crbegin interface where instead it could be implementing a more robust API using std::byte, char8_t types and std::span. These features are spread across C++14,17,20 though and would break the underlying C++11 nature of the library.

Would it be possible to have conditional language spec detection to add support for some of these features? Or should the library be "broken" to a newer version of C++?

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

No branches or pull requests

1 participant