Commit 87be1ab
committed
warn about c++ < 17
c++17 allows you to return a struct from a function without the copy constructor, we cannot allow the copy contructor because the backing buffer is not duplicated when the struct is copied so it gets double freed.1 parent e46440f commit 87be1ab
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
| |||
0 commit comments