[ create a new paste ] login | about

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

C++, pasted on Jul 28:
1
2
3
4
5
6
7
8
9
10
11
12
struct A {
   A() throw() {}
};

struct B : A {
   std::string str;
   B(std::string const& str) : str(str) {}
};

int main() {
   B b("wtf");
}


Output:
No errors or program output.


Create a new paste based on this one


Comments: