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 C2784

'declaration' : could not deduce template argument for 'type' from 'type'

The compiler cannot determine a template argument from the supplied function arguments.

Example

template<class T> class X { };
template<class T> void f(X<T>) {}
f(1); // error

The compiler cannot determine the template argument associated with T from this function call. The following code will work:

X<int> x;
f(x);