Skip to main content

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

> 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? 

I don't see a codan error on this code. Is this the only thing in the
file when you see the error? Are you using CDT master?

Regards,
Nate 		 	   		  

Back to the top