I have the following simple template:
template<class T, T N> bool VerifyGT(T value) { return value > N; } bool (*test1)(int) = &VerifyGE< int, (int) 0>;
At compilation: initialization test1 succeeds, test2 fails with "doesn not match required type". Any ideas?
Paweł szczur
source share