3 ms·
I disagree, templates in C++ are great! Just make sure you declare all the code (both declarations and definitions) in a header file, and it should work fine.
by AshleysBrain 15y ago
I disagree, templates in C++ are great! Just make sure you declare all the code (both declarations and definitions) in a header file, and it should work fine.
- quantumhobbit 15y agoHaving to put both declarations and definitions in the same header file is what feels kludgey to me. It is a break with the normal way of doing things.
- cageface 15y agoIn C++11 you can split the declaration and implementation with the new external template feature.