Why I can not use "std::array" by S32DS Vision?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Why I can not use "std::array" by S32DS Vision?

1,262 次查看
justforfunl
Contributor II

When I write " std::array<unsigned char, 256>"  code by S32DS Vision IDE,  It's will be error "std::array has not been declared", and I check header file, "#include <array>" was writted in the cpp file.

bests

Just

标记 (1)
0 项奖励
回复
1 回复

1,154 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

I can normally use std::array - like this:

#include <array>

.

.

void main()

{

   std::array<unsigned char, 256> test;

   if (test.empty()) 

      .... do something...

}

Using S32DS Vision v2.0 (tested in main.cpp for  apex2_add example - A53_Linux target). 

Jiri

0 项奖励
回复