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

A profile for early-checking of templates #2

Open
AbhinavK00 opened this issue Oct 17, 2023 · 1 comment
Open

A profile for early-checking of templates #2

AbhinavK00 opened this issue Oct 17, 2023 · 1 comment

Comments

@AbhinavK00
Copy link

This is more in line with C++0x concept design and other languages such as Swift, Rust, Haskell etc. Now that C++ has concepts, it would be nice to have a profile that performs early definition checking to function and class templates. This suggestion is inspired from a discussion on cppfront github here.
While I could not convince Herb to add early definition checking to cppfront, it was clear that the feature does have a place in today's C++.

@BjarneStroustrup
Copy link
Owner

Yes, that would fall into the realm of profiles. It is a restriction that does not change the semantics of a program that obeys it.

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