#include <climits>

template<bool Condition, typename T>
struct EnableIf;
template<typename T>
struct EnableIf<true, T>
{
    typedef T Type;
};

struct Foo
{
	enum
	{
		Sum = 1
	};
private:
	enum
	{
		MyCondition = ULONG_MAX > Sum
	};
public:
	typedef EnableIf<MyCondition, unsigned long int>::Type ProbabilityType;
};

int main()
{
}