Boost logo

Boost :

From: Kevin Cline (kcline_at_[hidden])
Date: 2001-11-28 14:27:33


Andrei Alexandrescu writes:
> From: "David Abrahams" <david.abrahams_at_[hidden]>
> > They're only aliases if you look at them as types. I'm looking at them as
> > metafunctions. They are identity metafunctions which return the same
> > type/value which has been passed to them.
>
> None of type2type nor int2type have the identity function as their main use.
> (After all, identity is hardly an interesting function). Their main use is
> to convert, as their name says, a type to a type and an integer to a type,
> respectively. See http://www.cuj.com/experts/1810/alexandr.htm.

FWIW, I like the original names too. "int2type" is perfectly clear;
"type2type" is perhaps not as obvious, but it's a better name than
anything else proposed so far.

--
Kevin Cline

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk