Skip to content

Replace Default with DefaultConstructible - #695

Merged
nunoplopes merged 13 commits into
Cpp2Rust:masterfrom
lucic71:default-initializable
Dec 2, 2026
Merged

nunoplopes merged 13 commits into
Cpp2Rust:masterfrom
lucic71:default-initializable

Conversation

@lucic71

@lucic71 lucic71 commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Removes the try_unwrap's in the Default implementation. DefaultConstructible receives a storage parameter as C++ does.

Also add TriviallyDefaultConstructible which returns the default value directly.

Add DefaultInitializable (DefaultConstructible + Destructible)

@nunoplopes
nunoplopes merged commit e426aed into Cpp2Rust:master Dec 2, 2026
7 of 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