
21 Oct
2008
21 Oct
'08
10:19 p.m.
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