In article <1129134621.855941.313510@g44g2000cwa.googlegroups .com>,
mlimber <mlimber@gmail.com> wrote:[color=blue]
>Greg Comeau wrote:[color=green]
>> In article <1129128623.514540.179850@g14g2000cwa.googlegroups .com>,
>>
PengYu.UT@gmail.com <PengYu.UT@gmail.com> wrote:[color=darkred]
>> >I heard that debug some C++ templates is very difficult. I'm wondering
>> >whether it is possible to compile C++ program with templates to pure C
>> >or C++ program without templates?[/color]
>>
>> The point of using templates is to not do that, since,
>> that's also difficult, generally speaking.[/color]
>
>Errors associated with templates are notoriously verbose and often
>cryptic (STLFilt not withstanding), and they make me wish I could have
>the compiler emit the code generated from templates so I could more
>easily see what was wrong. It would be similar to examining the output
>of the preprocessor to debug macros. I don't know of any compiler that
>does this, however.[/color]
Errors associated with other alternative similar things are also
notoriously verbose and often cryptic and don't even have something
such as STLfilt. This does not excuse either though and
I agree more needs to be done.
--
Greg Comeau / Celebrating 20 years of Comeauity!
Comeau C/C++ ONLINE ==>
http://www.comeaucomputing.com/tryitout
World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries... Have you tried it?