
2 Sep
2006
2 Sep
'06
1:26 a.m.
Janek Kozicki <janek_listy@wp.pl> 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 www.boost-consulting.com