Compiler Error C2891
TOC
Collapse the table of content
Expand the table of content

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; }
Show:
© 2016 Microsoft