Boost logo

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

So, if I have these template specializations of B:

class B<int, 4>
    enum { value = 4};

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

Pavel Chikulaev

Boost list run by bdawes at, gregod at, cpdaniel at, john at