Skip to content

Fix operator name collisions - #307

Merged
nunoplopes merged 3 commits into
Cpp2Rust:masterfrom
joaotgouveia:operator-names
Aug 18, 2026
Merged

Fix operator name collisions#307
nunoplopes merged 3 commits into
Cpp2Rust:masterfrom
joaotgouveia:operator-names

Conversation

@joaotgouveia

Copy link
Copy Markdown
Contributor

Changes how operators that are spelled using < or > are printed. Printing < or > collided with the search performed by Mapper::matchTemplate.

Comment thread cpp2rust/converter/mapper.cpp Outdated
os << "shreq";
break;
default:
std::unreachable();

@lucic71 lucic71 Aug 16, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use assert. The rest of the PR looks good

@nunoplopes
nunoplopes merged commit 5cf9f0f into Cpp2Rust:master Aug 18, 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.

3 participants