Boost logo

Boost :

From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2005-02-13 08:58:10

David Abrahams wrote:
> I'll ask again: what is the point of using types for states?

You can't easily emulate is-a relationship with numbers. With classes you
just derive one class from another. My example demonstrates this technique.

> I don't know if I do so, yet ;-)

I mean I _can_ do so but switching to mpl concept doesn't go smoothly.
Currently, I'm trying to understand why size of mpl::set<id<1>, id<2> > is 2
while distance between begin and end is one?


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