NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C2896

'function1' : cannot use function template 'function2' as argument

A function template cannot be an argument to another function template.

Example

template<class T1, class T2> void f1(void(*)(T1, T2));
template<class T1, class T2> void f2(T1, T2);

void g() {
   f1(f2);
}