Daily Archives: September 21, 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 ptrsize<sizeof(void*)>::int_t … Continue reading

Posted in tech | 1 Comment