logoalt Hacker News

gpderetta07/31/20251 replyview on HN

In C++ you can use indifferently either the class or typename keyword to introduce template arguments (because of course you can). A lot of styleguides suggest using typename because class is slightly misleading (the type could be anything not just a class).

In practice everybody just uses class, because who as the time to type the full keyword and signature declarations in C++ are already unwieldy as it is.


Replies

pjmlp07/31/2025

Anyone using a proper IDE instead of notepad like editor.

show 2 replies