Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] is this bad coding style or a bug?

Hi devs,

 

I just stumbled over this little code fragment:

 

template<typename _A_>

struct B {

 

int i = _A_::value_t::value * 2; // codan error due to missing operator * ()

 

};

 

I was a bit astonished that codan is even trying to make sense of this statement without any template instantiation anywhere in the code (there is only this declaration and nothing else).

Is this a bug or just too bad coding style?

 

bye Michi


Back to the top