[ create a new paste ] login | about

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

C++, pasted on Nov 19:
1
2
3
4
5
6
7
8
9
struct A {
  A(int);  // prevent default ctor
};

struct B {
  A a;
};

B b;


Output:
1
2
3
t.cpp: In constructor 'B::B()':
Line 5: error: no matching function for call to 'A::A()'
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: