You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 08a11c2
Browse filesBrowse the repository at this point in the historyBrowse files
From, tests/unit/redundant_copy_in_conversion:
```cpp
// Comparing const_iterator with iterator forces an implicit conversion of
// `end` to const_iterator. The AST shape differs between platforms:
//
// Linux: const_it == ConvertingCtor(end)
// macOS: const_it == ConvertingCtor(CopyCtor(end))
//
// The extra inner CopyCtor on macOS would emit a redundant .clone() in the
// generated Rust. cpp2rust suppresses it so the output matches Linux.
const_it == end ? 0 : 1;
```
This only happens on iterator types because the distinction between
iterator and const_iterator. Other containers don't have this issue.
0 commit comments