[ create a new paste ] login | about

Link: http://codepad.org/pna2k1OW    [ raw code | fork ]

C++, pasted on Apr 7:
#include <iostream>


template <int N> struct hoge
{
	hoge<N + 1> next;
};

template <> struct hoge<10>
{
};

template <> struct hoge<3>
{
	static int const N = 3;

	hoge<N + 1> next;
};

int main(void)
{
	return 0;
}


Output:
No errors or program output.


Create a new paste based on this one


Comments: