Class data member initialization

Class data member initialization

Deepak Chandan's picture

Hi,

When I compile a class that has a data member initialized within the class header file, I get an error that says "data member initializer is not allowed". I get this error even after supplying -std=c++11 flag to the compiler. My understanding is that such an initialization should be allowed in c++11 and infact gcc 4.7 on my computer does allow such initialization with the same flag. Is this feature not supported in Intel compiler version 13? 

Thanks,

Deepak

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Georg Zitzlsberger (Intel)'s picture

Hello Deepak,

you seem to speak about non-static data members. No, we don't support this yet. I've asked engineering about our plans. I'm coming back to you if I learn more.

Best regards,

Georg Zitzlsberger

Georg Zitzlsberger (Intel)'s picture

Hello Deepak,

the next (first) update will have support for it: Intel(R) Composer XE 2013 Update 1

Best regards,

Georg Zitzlsberger

Deepak Chandan's picture

Hi Georg,
Yes, I meant non-static data member. Thanks for the information, I look forward to the next update.

-Deepak

Login to leave a comment.