
23 Feb
2005
23 Feb
'05
10:38 p.m.
"Agoston Bejo"
Hi all, I am trying to enable only two version of a function. The caller may choose one
of the two versions by specifying a template parameter. I've got two versions
for the problem, both of them failing the same way. template
enable_if_c f(T t) { cout << 1 << endl; }
FWIW enable_if signature is required as follows:
template