Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Deepak_Chandan
Beginner
76 Views

Class data member initialization

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

0 Kudos
3 Replies
Georg_Z_Intel
Employee
76 Views

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_Z_Intel
Employee
76 Views

Hello Deepak, the next (first) update will have support for it: Intel(R) Composer XE 2013 Update 1 Best regards, Georg Zitzlsberger
Deepak_Chandan
Beginner
76 Views

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