Getting warning while using below code:
warning: extended initializer lists only available with std c++ 11
struct test{
int a;
int b;
};
//Previously const test atest[] = { {2,3} {4,5} };
const test atest[] = { {2,3} , {4,5} };
How can I remove this? I tried with solution, but it didn't work.