|
Boost : |
Subject: Re: [boost] [MPL] wrapper for if_ selecting integral_c
From: Jordans, R. (r.jordans_at_[hidden])
Date: 2008-10-21 18:19:30
> template <typename C, typename T, T value1, T value2>
> struct if_integral_c
> : integral_c<T,(C::type::value?value1:value2)>
> {};
>
> would be more correct and more interoperable.
Ok, I will use that, thanks for the suggestion
>> But from what I've understood not all compilers like it when you use a
>> template typename parameter as type for other template parameters
>
>Sorry, I don't understand what you mean.
I'm not sure if all compilers understand templates in the form:
template<typename T, T foo>
Or is this only for obscure compilers?
Roel
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk