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

Modernizing c++ code #8491

Open
tsjung75 opened this issue Jan 19, 2025 · 1 comment
Open

Modernizing c++ code #8491

tsjung75 opened this issue Jan 19, 2025 · 1 comment

Comments

@tsjung75
Copy link

Do you have any plan to modernize generated c++ code by using c++ 23?

Not just using std::optional or std::span, also complete rewriting for simplicity, readability like protobuf.
Cascading get/set, simplest easist API.

@dbaileychess
Copy link
Collaborator

I would like to modernize the code used in flatc to be more modern, as it easier to build that with modern toolchains/compilers. The support for the generated code still has to target older standards (we still support C++11), so I don't envision that being changed any time soon. We could add targeted support for C++20 and C++23 features, like we have for C++17, but it wouldn't be a full rewrite.

It just a lot of work to do.

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

2 participants