summaryrefslogtreecommitdiff
path: root/7p44.cpp
blob: 925f7d6c59e37ddd42e4b3286ae59e04ae1118b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <iostream>
#include <vector>
/*
 *
 * 7.44
 *
 *
 */

class NoDefault {
public:
	NoDefault(int j): i(j) {}
	int geti() {return i;}
private:
	int i;
};

class C {
public:
	C(): nd(0) { }
private:
	NoDefault nd;
};

int main () {

	//std::vector<NoDefault> vnd(10); // NOT legal
	std::vector<C> vc(10); // LEGAL
	return 0;
}