Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

... which does also happen at compile time. Or before you instantiate it, if the template is declared using concepts, in C++20.

The effect without concepts is that you can (in principle) get things that "accidentally" match, like applying "+" to strings; and that the error messages when they don't match are unpleasant. Concepts resolve both.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: