Topic: typename


Author: dave@boost-consulting.com (David Abrahams)
Date: Tue, 20 Mar 2007 04:01:04 GMT
Raw View
on Mon Mar 19 2007, "kwikius" <andy-AT-servocomm.freeserve.co.uk> wrote:

> Just an observation...
>
> The requirement to use ' typename' keyword at various points in
> template code is on one hand trivial, but on the other hand in
> practise is a huge barrier to beginners to writing code using
> templates. The error message provided by the compiler is often
> misleading and seems to cause hours of frustration trying to find the
> problem.
>
> I guess that nothing can be done to improve the situation?

Concept support improves the situation completely: typename disappears
in concept-enabled templates.

--
Dave Abrahams
Boost Consulting
www.boost-consulting.com

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]





Author: "kwikius" <andy@servocomm.freeserve.co.uk>
Date: Mon, 19 Mar 2007 10:12:57 CST
Raw View
Just an observation...

The requirement to use ' typename' keyword at various points in
template code is on one hand trivial, but on the other hand in
practise is a huge barrier to beginners to writing code using
templates. The error message provided by the compiler is often
misleading and seems to cause hours of frustration trying to find the
problem.

I guess that nothing can be done to improve the situation?

regards
Andy Little

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]