I read somewhere that template instantiation failure is not a compiler error and the compiler will keep trying instantiations until it runs out. I have no idea how this works, though.
I'm trying to solve a puzzle someone gave me. I have to use C++03, and I have to use a templated function that takes a functor and invokes it either with no parameters or with two parameters depending on the functor given.