Это быстрее попробовать, чем задать вопрос здесь. С GCC (g ++ 4.6) я получаю
temp.cc:7:12: error: type/value mismatch at argument 1 in template parameter list for 'template<class T> class foo'
temp.cc:7:12: error: expected a type, got '0'
Так что, видимо, ответ нет