Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2006-09-01 21:26:31

Janek Kozicki <janek_listy_at_[hidden]> writes:

> Ben Strasser said: (by the date of Fri, 1 Sep 2006 15:15:14 +0000 (UTC))
>> Does anybody have an idea on how to solve this? A way to sort arbitrary types
>> would be ideal.
> If I recall correctly Andrei Alexandrescu in his "modern C++ design" has
> written an example that sorts types in a list (a typelist) according to
> some compiler-decides criterion.

He used inheritance relationships.

> I cannot look up it now, but if you can't find it, let me know, and
> I will look into the book.

Why not just use mpl::sort?

Dave Abrahams
Boost Consulting

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