// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
#include <ctime>
#include <iostream>

using namespace std;

template<typename T>
class Demo
{
    public:
        static const char *test() { return "T"; }
};

template<>
class Demo<int>
{
    public:
        static const char *test() { return "int"; }
};

template<>
class Demo<long int>
{
    public:
        static const char *test() { return "long int"; }
};

/*
template<>
class Demo<time_t>
{
    public:
        static const char *test() { return "time_t"; }
};
*/

int main()
{
    cout << Demo<int>::test() << endl;
    cout << Demo<long int>::test() << endl;
    return 0;
}
