|
Boost : |
Subject: Re: [boost] C++11 Metaprogramming
From: Dave Abrahams (dave_at_[hidden])
Date: 2012-04-06 08:21:42
on Fri Apr 06 2012, Mathias Gaunard <mathias.gaunard-AT-ens-lyon.org> wrote:
> On 06/04/12 09:04, Andrzej Krzemienski wrote:
>>> And this is the worst part: I forgot the
>> "typename". Having to type this "typename" is really terrible and just
>> scares off many people. If you do not mind it, it only means that you got
>> used to it; but people should not be forced to get used to too many
>> gotchas.
>
> The language requires to specify whenever dependent names in template
> contexts are anything else than values (i.e. types or templates).
>
> There is no substitute for learning the basics of the language. This
> is not a gotcha, just normal usage of templates.
While true, I agree with Andrzej that it is a shame and it would be
better to smooth this sort of thing over for users. It's just a
question of whether we give up too much valuable power for anyone
wanting to go beyond the most basic usage by doing so.
-- Dave Abrahams BoostPro Computing http://www.boostpro.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk