Crashing The VS Compiler

With this code:

template <class T> class bugs {
template<> bugs<int>::bugs()

It seems the compiler doesn’t like that we specialize a function that wasn’t first declared in the class. Oh well.

2 Responses to “Crashing The VS Compiler”

  1. VS has poor support for templates in general. I remember having some problems with template specialization and explicit specialization in VS2005. Seems like it didn’t get much better. GCC rulez!

Leave a Reply