Sorry for my bad description, I meant if I uncomment the 1st line, and comment out the 2nd line, the compiler will report error. I didn't mean to overload the function. I.E., compiler will fail for following code:
extern "C" void foo (void*);
template <typename T, void(*cb)(T*)> class Test {};
typedef Test<void, foo> TestVoid;
--
This message posted from opensolaris.org
