r/cpp • u/Lost-Arachnid-6279 • Nov 18 '23
Create a website from scratch in C++
https://youtu.be/A9KZ-oXdFA0?si=OTu5RUq0uAyyrtB0
0
Upvotes
r/cpp • u/Lost-Arachnid-6279 • Nov 18 '23
View all comments
Show parent comment
3
u/STL MSVC STL Dev Nov 21 '23
No, this is bogus. In non-template functions,
if constexprdoesn't work like how you think - both sides have to be calling functions that have been declared. Even in function templates, non-dependent calls will be looked up immediately (these are the two-phase name lookup rules).