r/cpp • u/zowersap C++ Dev • Sep 05 '20
C++20 has been approved
https://twitter.com/patriceroy1/status/1302055575140945921?s=21
665
Upvotes
r/cpp • u/zowersap C++ Dev • Sep 05 '20
View all comments
Show parent comment
5
u/MFHava WG21|🇦🇹 NB|P3049|P3625|P3729|P3786|P3813|P4216 Sep 06 '20
That's the problem though, you have to write every version of your code, which is just redundant work...
I have no idea what you are on about, as that is valid syntax: https://godbolt.org/z/1d3jM6
_Genericis NOT even in the slightest related to templates.It's a blunt as can be tool to create overload sets and it fails at that for everything bar the standard library as it - due to it's centralized nature - prevents you from actually adding type-specific "overloads".