Title: boost\network\uri\uri.hpp(336,40): warning C4244: 'argument': conversion from '__int64' to 'long', possible loss of data · Issue #896 · cpp-netlib/cpp-netlib · GitHub
Open Graph Title: boost\network\uri\uri.hpp(336,40): warning C4244: 'argument': conversion from '__int64' to 'long', possible loss of data · Issue #896 · cpp-netlib/cpp-netlib
X Title: boost\network\uri\uri.hpp(336,40): warning C4244: 'argument': conversion from '__int64' to 'long', possible loss of data · Issue #896 · cpp-netlib/cpp-netlib
Description: Hi, I'm using vcpkg and when I include cpp-netlib in my codebase, I always get the following compilation warning: C:\vcpkg\installed\x64-windows-static\include\boost\network\uri\uri.hpp(336,40): warning C4244: 'argument': conversion from...
Open Graph Description: Hi, I'm using vcpkg and when I include cpp-netlib in my codebase, I always get the following compilation warning: C:\vcpkg\installed\x64-windows-static\include\boost\network\uri\uri.hpp(336,40): wa...
X Description: Hi, I'm using vcpkg and when I include cpp-netlib in my codebase, I always get the following compilation warning: C:\vcpkg\installed\x64-windows-static\include\boost\network\uri\uri.hpp(336,40)...
Opengraph URL: https://github.com/cpp-netlib/cpp-netlib/issues/896
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"boost\\network\\uri\\uri.hpp(336,40): warning C4244: 'argument': conversion from '__int64' to 'long', possible loss of data","articleBody":"Hi, I'm using `vcpkg` and when I include `cpp-netlib` in my codebase, I always get the following compilation warning:\r\n\r\n```\r\nC:\\vcpkg\\installed\\x64-windows-static\\include\\boost\\network\\uri\\uri.hpp(336,40): warning C4244: 'argument': conversion from '__int64' to 'long', possible loss of data (compiling source file main.cpp)\r\n```\r\n\r\nThis would easily be fixed by adding a respective cast in this library:\r\n```\r\ninline bool operator==(const uri \u0026lhs, const uri::value_type *rhs) {\r\n auto rlen = std::strlen(rhs);\r\n size_t llen = std::labs((long) std::distance(lhs.begin(), lhs.end())); // \u003c---\r\n if (rlen != llen) return false;\r\n return boost::equal(lhs, boost::make_iterator_range(rhs, rhs + rlen));\r\n}\r\n```","author":{"url":"https://github.com/BullyWiiPlaza","@type":"Person","name":"BullyWiiPlaza"},"datePublished":"2021-11-06T13:21:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/896/cpp-netlib/issues/896"}
| 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:6e59ff32-1cc2-634a-cd9b-0e1f63111ec9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EBF8:365318:102238:159749:696E6B90 |
| html-safe-nonce | 81ae4a1a1ea56b1d4b50286a43fce0e7c30111ca333fb906ccacb9c72ecd133c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkY4OjM2NTMxODoxMDIyMzg6MTU5NzQ5OjY5NkU2QjkwIiwidmlzaXRvcl9pZCI6Ijc1MzgwNzc0NzA2ODI5MzQxNjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d130ccaf64d1c4589b6e4f41caf84a596192309aa904e5fd7876f17e0f905920 |
| hovercard-subject-tag | issue:1046508386 |
| 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/cpp-netlib/cpp-netlib/896/issue_layout |
| twitter:image | https://opengraph.githubassets.com/baa27bb46c547989a8d3ce109abed240a1edb14ea2226792594b00b00edb8d44/cpp-netlib/cpp-netlib/issues/896 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/baa27bb46c547989a8d3ce109abed240a1edb14ea2226792594b00b00edb8d44/cpp-netlib/cpp-netlib/issues/896 |
| og:image:alt | Hi, I'm using vcpkg and when I include cpp-netlib in my codebase, I always get the following compilation warning: C:\vcpkg\installed\x64-windows-static\include\boost\network\uri\uri.hpp(336,40): wa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | BullyWiiPlaza |
| hostname | github.com |
| expected-hostname | github.com |
| None | dd24262d9e4947a6c63df018b01e9a6da49caaf8259148a56a04b665d15d66b3 |
| turbo-cache-control | no-preview |
| go-import | github.com/cpp-netlib/cpp-netlib git https://github.com/cpp-netlib/cpp-netlib.git |
| octolytics-dimension-user_id | 192422 |
| octolytics-dimension-user_login | cpp-netlib |
| octolytics-dimension-repository_id | 494068 |
| octolytics-dimension-repository_nwo | cpp-netlib/cpp-netlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 469399 |
| octolytics-dimension-repository_parent_nwo | glynos/cpp-netlib |
| octolytics-dimension-repository_network_root_id | 469399 |
| octolytics-dimension-repository_network_root_nwo | glynos/cpp-netlib |
| 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 | 307ab96ec5f21762ff6c530a60b1ef6b1e74dd5a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width