From: Ben Strasser (strasser.ben_at_[hidden])
Date: 2006-09-02 17:34:18
David Abrahams <dave <at> boost-consulting.com> writes:
> Why not just use mpl::sort?
Because AFAIK it needs some compairison metafunction as argument and I have none.
But I solved my problem. It's actually quiet simple:
typedef unit<quantity<length, 1, time_, -1> >meter1;
typedef unit<quantity<time_, -1, length, 1> >meter2;
// only overload for 1 unit
cout<<foo; // implicit conversion does the ordering for me
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk