Tag Archives: templates

Making Compiles Slow Through Abuse of Templates

I’m planning a post on how to maximize build parallelism in VC++, but first I needed to create a simple project that was slow to compile. Creating such a program was an interesting exercise in its own right and I … Continue reading

Posted in Performance, Programming, Visual Studio | Tagged , , | 18 Comments

Stop using strncpy already!

I keep running into code that uses strcpy, sprintf, strncpy, _snprintf (Microsoft only), wcsncpy, swprintf, and morally equivalent functions. Please stop. There are alternatives which are far safer, and they actually require less typing. The focus of this post is … Continue reading

Posted in Code Reliability, Visual Studio | Tagged , , , , | 79 Comments