Title: std::array default initializer is wrong · Issue #313 · Cpp2Rust/cpp2rust · GitHub
Open Graph Title: std::array default initializer is wrong · Issue #313 · Cpp2Rust/cpp2rust
X Title: std::array default initializer is wrong · Issue #313 · Cpp2Rust/cpp2rust
Description: std::array
Open Graph Description: std::array
X Description: std::array
Opengraph URL: https://github.com/Cpp2Rust/cpp2rust/issues/313
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"std::array default initializer is wrong","articleBody":"`std::array\u003cint, 3> v = {};` generates `let mut v: Vec\u003ci32> = vec![];`. The vec should have 3 elements, not 0.","author":{"url":"https://github.com/lucic71","@type":"Person","name":"lucic71"},"datePublished":"2026-08-17T18:38:10Z","url":"https://github.com/Cpp2Rust/cpp2rust/issues/313"}
| 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:304c8b95-8eaf-d5b1-62e8-7cbfa17048bb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D1A0:13E7EE:13D189:19AB29:6B024715 |
| html-safe-nonce | 81dfd8ddd978a62efc55e1521cc29f16f3a47c54fb49f4a1a0d54671ca28032a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUEwOjEzRTdFRToxM0QxODk6MTlBQjI5OjZCMDI0NzE1IiwidmlzaXRvcl9pZCI6IjEwODI4OTE4Nzk5NTcyODQ2MjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e92eeb5828c5790e2d2e4f352fe260fa59a4d7e30503235130d570add8a93597 |
| hovercard-subject-tag | issue:5174276145 |
| 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/Cpp2Rust/cpp2rust/313/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dd86bbfe061397742580fb0e03235a027531a3bd15d1033b96d38cfd3a1d946a/Cpp2Rust/cpp2rust/issues/313 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dd86bbfe061397742580fb0e03235a027531a3bd15d1033b96d38cfd3a1d946a/Cpp2Rust/cpp2rust/issues/313 |
| og:image:alt | std::array |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lucic71 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/Cpp2Rust/cpp2rust git https://github.com/Cpp2Rust/cpp2rust.git |
| octolytics-dimension-user_id | 197474191 |
| octolytics-dimension-user_login | Cpp2Rust |
| octolytics-dimension-repository_id | 1183095779 |
| octolytics-dimension-repository_nwo | Cpp2Rust/cpp2rust |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1183095779 |
| octolytics-dimension-repository_network_root_nwo | Cpp2Rust/cpp2rust |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width