Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-01-02 06:49:27

From: "Aleksey Gurtovoy" <agurtovoy_at_[hidden]>
> In short, my motivation for using 'typename's here is that I perceive the
> 'class' keyword as rather high-weight, semantically loaded, and prefer to
> use it in its only original context - that is, for declaring/defining a
> user-defined type that is more than a POD. Using it in other places
> the word.

I used to buy this argument once, too. ;-)

FWIW, a practical consideration is that

#define typename

(on a compiler that doesn't need 'typename' and has trouble ignoring it)
will break your code. (Of course this compiler isn't likely to work with MPL

Boost list run by bdawes at, gregod at, cpdaniel at, john at