Commit 5a253b6
committed
Fix a C++20 compatibility issue with an unnamed struct (P1766R1)
As a result of P1766R1 [1], `PyHeapTypeObject` can no longer be added
to an unnamed `typedef struct`. On Visual Studio 2019 ≥16.6, this
causes the warning C5208 in C++14 and C++17 mode, and the error C7626
with `/std:c++latest` or the future `/std:c++20`. Giving a name to the
unnamed struct is the simplest fix here [2].
[1]: http://wg21.link/p1766r1
[2]: https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/c52081 parent 58ccd53 commit 5a253b6
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
0 commit comments