|
Boost : |
Subject: Re: [boost] [chrono] type_traits/common_type and integer/ratio
From: joel falcou (joel.falcou_at_[hidden])
Date: 2009-12-06 04:57:37
joel falcou wrote:
> could be nice if they used mpl::integral_c so it can be used easily as
> MPL meta-functions
forgot the code obv. :
namespace mpl
{
template<class X> struct abs : integral_c< typename X::value_type, (X
< 0 ? -X : X)> {};
}
etc
-- ___________________________________________ Joel Falcou - Assistant Professor PARALL Team - LRI - Universite Paris Sud XI Tel : (+33)1 69 15 66 35
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk