Daily Archives: September 21st, 2007

C++ is the spawn of satan

however, this does work:

#include <iostream>

template<int size>
struct ptrsize
{
};

template<> struct ptrsize<4>
{
typedef int int_t;
typedef unsigned int uint_t;
};

template<> struct ptrsize<8>
{
typedef long long int_t;
typedef unsigned long long uint_t;
};

typedef […]