Boost logo

Boost :

From: Matthias Schabel (boost_at_[hidden])
Date: 2007-01-15 23:44:52


> Not impossible, just add another layer of indirection:
>
> template<typename T1,typename T2>
> class quantity : public quantity_impl<
> typename mpl::if_<
> is_unit<T1>,T2,T1
>> ::type,
> typename mpl::if_<
> is_unit<T1>,T1,T2
>> ::type
>> {};

This is intriguing, but I'm not sure how one would enable a default
template argument on just the value_type... Any ideas?

Matthias


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