Title: solved PyType_Slot *slots; bug in Python.h include command by shrita2000 · Pull Request #342 · lava/matplotlib-cpp · GitHub
Open Graph Title: solved PyType_Slot *slots; bug in Python.h include command by shrita2000 · Pull Request #342 · lava/matplotlib-cpp
X Title: solved PyType_Slot *slots; bug in Python.h include command by shrita2000 · Pull Request #342 · lava/matplotlib-cpp
Description: Compiling a project using this library sometimes throws the following error: "expected unqualified-id before ‘;’ token 190 | PyType_Slot *slots; " Since Qt uses slots as a reserved keyword there is a clash with the declaration of the slots member of the PyType_Slot struct in Python.h. To avoid the conflict regarding 'slots', without the need for deactivating the keywords signals/slots/emit (which may be undesirable for large Qt projects), the code edit locally "parks" the offending keyword while Python.h is included, and then reassigns it.
Open Graph Description: Compiling a project using this library sometimes throws the following error: "expected unqualified-id before ‘;’ token 190 | PyType_Slot *slots; " Since Qt uses slots as a reserved ke...
X Description: Compiling a project using this library sometimes throws the following error: "expected unqualified-id before ‘;’ token 190 | PyType_Slot *slots; " Since Qt uses slots as a res...
Opengraph URL: https://github.com/lava/matplotlib-cpp/pull/342
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:ecaec9d0-0bae-0ef0-9777-886a5294208f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8B4E:1BC95F:CB09EC:1118848:6977F037 |
| html-safe-nonce | cf1c4a5fae60badccf8516b5dd589cd3025777db7141c92acfae5687819a692c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjRFOjFCQzk1RjpDQjA5RUM6MTExODg0ODo2OTc3RjAzNyIsInZpc2l0b3JfaWQiOiI1MzU0ODczNTAxODQ2MDM3MDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6f3b29133e8f9d8e0709f9a09831546ad1dd642a3039c872f00276c72d011864 |
| hovercard-subject-tag | pull_request:1304135409 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/lava/matplotlib-cpp/pull/342/files |
| twitter:image | https://avatars.githubusercontent.com/u/117253459?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/117253459?s=400&v=4 |
| og:image:alt | Compiling a project using this library sometimes throws the following error: "expected unqualified-id before ‘;’ token 190 | PyType_Slot *slots; " Since Qt uses slots as a reserved ke... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8f1e678146f1d73cbdfdaa349dc174ab7af81d2a7f47a4b5b3ada9eb6e3f9e69 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/lava/matplotlib-cpp git https://github.com/lava/matplotlib-cpp.git |
| octolytics-dimension-user_id | 51410 |
| octolytics-dimension-user_login | lava |
| octolytics-dimension-repository_id | 24936365 |
| octolytics-dimension-repository_nwo | lava/matplotlib-cpp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24936365 |
| octolytics-dimension-repository_network_root_nwo | lava/matplotlib-cpp |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bff6b33928f6bf084f3501ebc5705de0492b7e35 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width