Compiler Error C2891
'parameter' : cannot take the address of a template parameter
Instead of using code like this:
template <int i> int* f() { return &i; }
use this:
template <int i> int* f() { return i; }
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
'parameter' : cannot take the address of a template parameter
Instead of using code like this:
template <int i> int* f() { return &i; }
use this:
template <int i> int* f() { return i; }