Sunday, November 6, 2011

what is this computing?


template<int n> struct funStruct
{
    enum { val = funStruct::val + funcstruct::val };
};
template<> struct funStruct<0>
{
    enum { val = 1 };
};


template<> struct funStruct<1>
{
    enum { val = 1 };
};

No comments:

Post a Comment