Skip to content

Fix hidden virtual assignment operator in Error from TimeError to fix the build#43

Open
emersonknapp wants to merge 1 commit into
stonier:develfrom
emersonknapp:fix-ecl-time-lite-operator-hiding
Open

Fix hidden virtual assignment operator in Error from TimeError to fix the build#43
emersonknapp wants to merge 1 commit into
stonier:develfrom
emersonknapp:fix-ecl-time-lite-operator-hiding

Conversation

@emersonknapp
Copy link
Copy Markdown

Appears some new behavior in GCC 13 in Noble catches this case.

I think it's a name lookup problem relating to the default assignment operator generated for TimeError making it so that the Error's virtual void operator= isn't considered. By adding using, we make it clear that the parent class operator should be considered.

Also added explicit to the single-argument constructor per general best practice.

Tested colcon build --packages-up-to ecl_core and it built okay now with this change.

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.

1 participant