static and generic programming (C++)

Started by
9 comments, last by Fruny 17 years, 6 months ago
Quote:Original post by Deyja
It's challenging to create a real class-level static in a template because they have external linkage, and reguire a seperate declaration in a source file.


Definitions for static members of class templates can actually (and should!) be placed in a header file, even though it is not possible for non-templates.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan

This topic is closed to new replies.

Advertisement