We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0ca337 commit d3a1c8aCopy full SHA for d3a1c8a
CONTRIBUTING.md
@@ -115,6 +115,16 @@ private:
115
#include "aiacpch.h"
116
```
117
118
+### Only smart (or unique) pointers
119
+It's 2024, we can pass on raw pointers. We use smart pointers.
120
+```c++
121
+std::unique_ptr<AnExampleClass> example = std::make_unique<AnExampleClass>(0);
122
+```
123
+Or if you really need to use an unique pointer because you don't want to transfer the ownership of the object, use a shared pointer.
124
125
+std::shared_ptr<AnExampleClass> example = std::make_shared<AnExampleClass>(0);
126
127
+
128
### Debugging with GDB
129
We use GDB for debugging. To install GDB on windows, do the following:
130
1. Download the MSYS2 installer from the [MSYS2 website](https://www.msys2.org/).
0 commit comments