This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to initialize POD structure in constructor?



Next simple example compiles successfully with g++ (-std=c++98), but fails to compile with c2000 (v 6.1.1).

I just created empty ccs project, renamed main.c into main.cpp, and copy/pasted the code, and the build failed.

Q: how to initialize POD structure in a constructor?

The example is here : 4786.initialize.cpp