C++/CLI Error in Visual Studio 2017

  • Thread starter Thread starter RexChng
  • Start date Start date
R

RexChng

Guest
Hello,

Still questions on porting from VS2010 to VS2017. A component run well on VS2010, while has errors compiling with VS2017,

ler.h(36): error C2976: 'std::array': too few template arguments
1>c:\program files (x86)\microsoft visual studio\2017\enterprise\vc\tools\msvc\14.15.26726\include\utility(512): note: see declaration of 'std::array'
ler.h(36): error C3699: '^': cannot use this indirection on type 'std::array'
ler.h(36): note: compiler replacing '^' with '*' to continue parsing

the code line is rather simple:

template<typename T> static void Convertion (array<T>^ from)

Checked that CLI was installed for VS2017.

Any suggestions are appreciated. Thanks.

Continue reading...
 
Back
Top