Title: The necessity of exporting base virtual function in 06-VirtualFunctionsInPython · Issue #41 · TNG/boost-python-examples · GitHub
Open Graph Title: The necessity of exporting base virtual function in 06-VirtualFunctionsInPython · Issue #41 · TNG/boost-python-examples
X Title: The necessity of exporting base virtual function in 06-VirtualFunctionsInPython · Issue #41 · TNG/boost-python-examples
Description: In boost-python-examples/06-VirtualFunctionsInPython/virtual.cpp Line 36 in 72ea66d .def("name", &Base::name, &BaseWrap::default_name) I knew the boost python doc said Take note that we expose both &Base::f and &BaseWrap::default_f. Boos...
Open Graph Description: In boost-python-examples/06-VirtualFunctionsInPython/virtual.cpp Line 36 in 72ea66d .def("name", &Base::name, &BaseWrap::default_name) I knew the boost python doc said Take note that we expose both...
X Description: In boost-python-examples/06-VirtualFunctionsInPython/virtual.cpp Line 36 in 72ea66d .def("name", &Base::name, &BaseWrap::default_name) I knew the boost python doc said Take note t...
Opengraph URL: https://github.com/TNG/boost-python-examples/issues/41
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The necessity of exporting base virtual function in 06-VirtualFunctionsInPython","articleBody":"In https://github.com/TNG/boost-python-examples/blob/72ea66d3e6200f8bcbaac707069ba708d88d8ee8/06-VirtualFunctionsInPython/virtual.cpp#L36\r\n\r\nI knew the [boost python doc](https://www.boost.org/doc/libs/1_68_0/libs/python/doc/html/tutorial/tutorial/exposing.html) said\r\n> Take note that we expose both &Base::f and &BaseWrap::default_f. Boost.Python needs to keep track of 1) the dispatch function f and 2) the forwarding function to its default implementation default_f. There's a special def function for this purpose.\r\n\r\nBut is it truely necessary to export `&Base::name`? And I can't see the differences blow in running results:\r\n```\r\n.def(\"name\", &Base::name, &BaseWrap::default_name)\r\n.def(\"name\", &BaseWrap::default_name)\r\n```","author":{"url":"https://github.com/ivytin","@type":"Person","name":"ivytin"},"datePublished":"2021-05-12T11:37:57Z","url":"https://github.com/TNG/boost-python-examples/issues/41"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ed460c9c-f9e7-6a12-bd88-1e2f7e3bb80d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AAC8:39D41C:6299FF:885BDF:6B0098EA |
| html-safe-nonce | c125287df6bdb89954fa625dc0b96756ffb1d0f9a7297971039243242ec442aa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQUM4OjM5RDQxQzo2Mjk5RkY6ODg1QkRGOjZCMDA5OEVBIiwidmlzaXRvcl9pZCI6IjE4NTUwMjMwMDU3MzQ4MzY0NTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 18f9dbe2ce29bfded0a280ae6765c4c465f8b041c155b7e60531b819dc3c1c65 |
| hovercard-subject-tag | issue:889994230 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/TNG/boost-python-examples/41/issue_layout |
| twitter:image | https://opengraph.githubassets.com/68394a2f24cbb9abcd2ec3f6c567448b6ef898a5b897741ea4b39ca2b9b3ce3a/TNG/boost-python-examples/issues/41 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/68394a2f24cbb9abcd2ec3f6c567448b6ef898a5b897741ea4b39ca2b9b3ce3a/TNG/boost-python-examples/issues/41 |
| og:image:alt | In boost-python-examples/06-VirtualFunctionsInPython/virtual.cpp Line 36 in 72ea66d .def("name", &Base::name, &BaseWrap::default_name) I knew the boost python doc said Take note that we expose both... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ivytin |
| hostname | github.com |
| expected-hostname | github.com |
| None | 552480023d6963d7f188d82f8cd5f3fe5046244607d769b794462821d9ea1b29 |
| turbo-cache-control | no-preview |
| go-import | github.com/TNG/boost-python-examples git https://github.com/TNG/boost-python-examples.git |
| octolytics-dimension-user_id | 432256 |
| octolytics-dimension-user_login | TNG |
| octolytics-dimension-repository_id | 1525949 |
| octolytics-dimension-repository_nwo | TNG/boost-python-examples |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1525949 |
| octolytics-dimension-repository_network_root_nwo | TNG/boost-python-examples |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | caf54e38b10face642f6cc1c79e4562e7ee52e3c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width