I\'m using gcc 4.4 on Debian squeeze. Consider the following code.
#include
I don't think variadic template parameters can match non-variadic arguments in g++4.4, so you need to overload your foo function with a non-variadic version.
Also keep in mind that map actually has more than two template parameters, and therefor wont match the new foo-function either.
This addition to your example should clarify it:
#include