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
31
32
#include <algorithm>
#include <memory>
#include <utility>
#include <iostream>
#include <vector>
#include <functional>
using namespace std;
struct A {
A() {}
A(A&&) noexcept /* comment me */ {}
std::function<void (int*)> func;
A(const A&) {}
};
class ABC
{
public:
ABC()
{}
private:
std::vector<std::unique_ptr<int>> up;
A a;
};
int main()
{
ABC a;
std::vector<ABC> vec;
vec.reserve(1);
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
g++ -std=c++14 -O2 -Wall -pedantic -pthread main.cpp && ./a.out