Skip to content

Support implicit conversion in std::vector constructor#102

Merged
nunoplopes merged 4 commits into
Cpp2Rust:masterfrom
lucic71:hacky-rule
May 17, 2026
Merged

Support implicit conversion in std::vector constructor#102
nunoplopes merged 4 commits into
Cpp2Rust:masterfrom
lucic71:hacky-rule

Conversation

@lucic71
Copy link
Copy Markdown
Contributor

@lucic71 lucic71 commented May 15, 2026

Previously, f39 was a hack to support implicit cast in constructing a vector over the more generic f37 rule.

I changed f37 to support implicit casts so that can write:

uint32_t src[3] = {1, 2, 3};
std::vector<int> v2(src, src + 3);

@nunoplopes nunoplopes merged commit fcd50c6 into Cpp2Rust:master May 17, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants