|
Boost : |
From: Pavel Chikulaev (pavel.chikulaev_at_[hidden])
Date: 2005-03-10 15:58:26
Hi all!
Can anyone help me?
I've got a problem with my library "Lazy".
Here's the code:
template<typename T, int N>
class B {};
template<typename T>
class C : B<T, max_possible_N_of_all_specializations_B<T> > {};
//The question is - How To write
//max_possible_N_of_all_specializations_B?
So, if I have these template specializations of B:
template<>
class B<int, 4>
{
enum { value = 4};
};
template<>
class B<int, 920234>
{
enum { value = 920234 };
};
C<int>::value should be 920234.
Does anyone knows how to do it?
Thanks in advance.
P.S. It's critical for my library to have
max_possible_N_of_all_specializations_B.
-- Pavel Chikulaev
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk