☰
Debian Codegraph
@
1.17.1-1
/
/
tests
/
rule-of-three
/
bug403193.cpp
☽
☼
tests/rule-of-three/bug403193.cpp
code
plain
raw
LGPL-2+
2015-2020 Sergio Martins <
[email protected]
>; 2015, 2016, 2019-2020 Klarälvdalens Datakonsult AB, a KDAB Group company,
[email protected]
; 2015 Nyall Dawson <
[email protected]
>; 2015 Mathias Hasselmann <
[email protected]
>; 2015 Albert Astals Cid <
[email protected]
>; 2019 Christian Gagneraud <
[email protected]
>; 2019 Jean-Michaël Celerier <
[email protected]
>; 2019 Nikolai Kosjar <
[email protected]
>; 2020 Lucie Gerard <
[email protected]
>; 2020 The Qt Company Ltd.
debian/copyright
1
class APrivate
2
{
3
public:
4
int i = 3;
5
};
6
7
class A
8
{
9
public:
10
A() : d(new APrivate()) {}
11
A(const A &other) : d(new APrivate(*other.d)) {}
12
~A() { delete d; }
13
private:
14
APrivate *const d;
15
};
16
17
void test()
18
{
19
A a;
20
A a2;
21
}