René's URL Explorer Experiment


Title: ambiguous call · Issue #3 · Cryoris/matplotlib-cpp · GitHub

Open Graph Title: ambiguous call · Issue #3 · Cryoris/matplotlib-cpp

X Title: ambiguous call · Issue #3 · Cryoris/matplotlib-cpp

Description: When compiling a standard example from readthedocs, #include #include "matplotlibcpp.h" namespace plt = matplotlibcpp; int main() { std::vector x = {1, 2, 3, 4}; std::vector y = {1, 4, 9, 16}; plt::plot(x, y,"r*"); plt::show(); } on Visu...

Open Graph Description: When compiling a standard example from readthedocs, #include #include "matplotlibcpp.h" namespace plt = matplotlibcpp; int main() { std::vector x = {1, 2, 3, 4}; std::vector y = {1, 4, 9, 16}; plt:...

X Description: When compiling a standard example from readthedocs, #include #include "matplotlibcpp.h" namespace plt = matplotlibcpp; int main() { std::vector x = {1, 2, 3, 4}; std::vector y = {1, 4, 9,...

Opengraph URL: https://github.com/Cryoris/matplotlib-cpp/issues/3

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ambiguous call","articleBody":"When compiling a standard example from [readthedocs](https://matplotlib-cpp.readthedocs.io/en/latest/docs.html), \r\n\r\n#include \u003cvector\u003e\r\n#include \"matplotlibcpp.h\"\r\nnamespace plt = matplotlibcpp;\r\nint main() {\r\n  std::vector\u003cdouble\u003e x = {1, 2, 3, 4};\r\n  std::vector\u003cdouble\u003e y = {1, 4, 9, 16};\r\n  plt::plot(x, y,\"r*\");\r\n  plt::show();\r\n}\r\n\r\n on VisualStudio22 with the ISO C++20 flag and native Python 3.10, I get\r\n\r\n![Screenshot 2022-01-26 172910](https://user-images.githubusercontent.com/88940494/151539597-4a4d037c-1a48-40f4-993c-bc51b1f90e71.png)\r\n\r\nApparently, the compiler cannot decide between \r\n\r\n// @brief standard plot function supporting the args (x, y, s, keywords) // line 519\r\n// ...\r\ntemplate \u003ctypename VectorX, typename VectorY\u003e\r\nbool plot(const VectorX \u0026x, const VectorY \u0026y, const std::string \u0026s = \"\",\r\n          const std::map\u003cstd::string, std::string\u003e \u0026keywords = {}) {\r\n  return detail::plot_base(detail::_interpreter::get().s_python_function_plot,\r\n                           x, y, s, keywords);\r\n}\r\n\r\nand\r\n\r\n// enable plotting of multiple triples (x, y, format) // line 1953\r\ntemplate \u003ctypename A, typename B, typename... Args\u003e\r\nbool plot(const A \u0026a, const B \u0026b, const std::string \u0026format, Args... args) {\r\n  return plot(a, b, format) \u0026\u0026 plot(args...);\r\n}\r\n\r\nAs I understand, correct me if I'm wrong, there a several constructors, each of which is designed to fall through to the first one above, the one that finally calls plot_base. So, I renamed all constructors but the first one above plot1, and my code now successfully calls plt::plot1 ..... Of course, messing with your library and using non-standard calls on my side is not a proper solution. Rename the fall-through constructor, and I haven't even tested similarily overloaded functions?","author":{"url":"https://github.com/bjornrommel","@type":"Person","name":"bjornrommel"},"datePublished":"2022-01-28T11:57:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/3/matplotlib-cpp/issues/3"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0c9c56e3-35d2-b8dc-41e1-39a2eb370e88
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idABD8:300650:2C8DD4:3C2A5C:6A568E1A
html-safe-nonce8fb348c01c742831ca0bf9416958f63da0ffde090a2c5ab94d30ebce8cbb30ac
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkQ4OjMwMDY1MDoyQzhERDQ6M0MyQTVDOjZBNTY4RTFBIiwidmlzaXRvcl9pZCI6IjYwNDI0NDc2NTc4MjE0NDE1NjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7e0ce1ec9afba3430a57ceb6b45a5901024ee895df8a6c4ad3e900fb887f34fd
hovercard-subject-tagissue:1117321911
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Cryoris/matplotlib-cpp/3/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8404164669f5e947f81939b18f0b8fca631e798500563f3d2e63443969a84b32/Cryoris/matplotlib-cpp/issues/3
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8404164669f5e947f81939b18f0b8fca631e798500563f3d2e63443969a84b32/Cryoris/matplotlib-cpp/issues/3
og:image:altWhen compiling a standard example from readthedocs, #include #include "matplotlibcpp.h" namespace plt = matplotlibcpp; int main() { std::vector x = {1, 2, 3, 4}; std::vector y = {1, 4, 9, 16}; plt:...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebjornrommel
hostnamegithub.com
expected-hostnamegithub.com
None8f21be8503ba8fe6154df415b855c03af52eae3f285bd6ae1fef041dc053da38
turbo-cache-controlno-preview
go-importgithub.com/Cryoris/matplotlib-cpp git https://github.com/Cryoris/matplotlib-cpp.git
octolytics-dimension-user_id5978796
octolytics-dimension-user_loginCryoris
octolytics-dimension-repository_id41151748
octolytics-dimension-repository_nwoCryoris/matplotlib-cpp
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id24936365
octolytics-dimension-repository_parent_nwolava/matplotlib-cpp
octolytics-dimension-repository_network_root_id24936365
octolytics-dimension-repository_network_root_nwolava/matplotlib-cpp
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release78af172a48a2056810bb627ffa684003e4f9a5ca
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/Cryoris/matplotlib-cpp/issues/3#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FCryoris%2Fmatplotlib-cpp%2Fissues%2F3
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FCryoris%2Fmatplotlib-cpp%2Fissues%2F3
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=Cryoris%2Fmatplotlib-cpp
Reloadhttps://github.com/Cryoris/matplotlib-cpp/issues/3
Reloadhttps://github.com/Cryoris/matplotlib-cpp/issues/3
Reloadhttps://github.com/Cryoris/matplotlib-cpp/issues/3
Cryoris https://github.com/Cryoris
matplotlib-cpphttps://github.com/Cryoris/matplotlib-cpp
lava/matplotlib-cpphttps://github.com/lava/matplotlib-cpp
Notifications https://github.com/login?return_to=%2FCryoris%2Fmatplotlib-cpp
Fork 101 https://github.com/login?return_to=%2FCryoris%2Fmatplotlib-cpp
Star 127 https://github.com/login?return_to=%2FCryoris%2Fmatplotlib-cpp
Code https://github.com/Cryoris/matplotlib-cpp
Issues 4 https://github.com/Cryoris/matplotlib-cpp/issues
Pull requests 2 https://github.com/Cryoris/matplotlib-cpp/pulls
Actions https://github.com/Cryoris/matplotlib-cpp/actions
Projects https://github.com/Cryoris/matplotlib-cpp/projects
Wiki https://github.com/Cryoris/matplotlib-cpp/wiki
Security and quality 0 https://github.com/Cryoris/matplotlib-cpp/security
Insights https://github.com/Cryoris/matplotlib-cpp/pulse
Code https://github.com/Cryoris/matplotlib-cpp
Issues https://github.com/Cryoris/matplotlib-cpp/issues
Pull requests https://github.com/Cryoris/matplotlib-cpp/pulls
Actions https://github.com/Cryoris/matplotlib-cpp/actions
Projects https://github.com/Cryoris/matplotlib-cpp/projects
Wiki https://github.com/Cryoris/matplotlib-cpp/wiki
Security and quality https://github.com/Cryoris/matplotlib-cpp/security
Insights https://github.com/Cryoris/matplotlib-cpp/pulse
ambiguous callhttps://github.com/Cryoris/matplotlib-cpp/issues/3#top
https://github.com/bjornrommel
bjornrommelhttps://github.com/bjornrommel
on Jan 28, 2022https://github.com/Cryoris/matplotlib-cpp/issues/3#issue-1117321911
readthedocshttps://matplotlib-cpp.readthedocs.io/en/latest/docs.html
https://user-images.githubusercontent.com/88940494/151539597-4a4d037c-1a48-40f4-993c-bc51b1f90e71.png
@briefhttps://github.com/brief
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.