[ create a new paste ] login | about

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

C++, pasted on Jan 17:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class State
{
	int sate_stuff;
};

class Derived;

class Base
{
public:
	Base(Derived &p_Derived)
		: m_pState(static_cast<Base>(p_Derived).m_pState){}
private:
	State *m_pState;
};


Output:
1
2
In function `_start':
undefined reference to `main'


Create a new paste based on this one


Comments: