|
|
|
|
|
by spoiler
1262 days ago
|
|
I think they meant to say that neither templates (nor virtual classes) are quite up to the same level of polymorphism that Rust has. Ie Rust type checkes at definition, as opposed to copy-paste and hope for the best (wrgt templates) when trying to compile the code. In other words Cpp templates are closer to Rusts declarative macros than to Rust generics. Hopefully concepts make this better in Cpp. |
|
I still think that C++ templates are different than rust macros as they are not a separate pass from type checking.