-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C++11-ify virtualisation in lwIP classes #12489
Conversation
@kjbracey-arm, thank you for your changes. |
#if LWIP_IPV6 && LWIP_IPV4 | ||
return NULL; | ||
#endif | ||
return get_ip_address_if(address, nullptr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we do this in separate commit at least?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right - I'll pull that fixup change to the front.
Previous change that removed string-based APIs missed `LWIP::get_ip_address`. Remove string-based method (which is not overriding anything in `NetworkInterface`) and add missing binary form to implement `NetworkInterface::get_ip_address`.
Use `override` and `final` where appropriate, and eliminate unnecessary `virtual`. Some other C++11 simplifications.
72af001
to
aa9058a
Compare
Pull request has been modified.
CI started |
Test run: FAILEDSummary: 2 of 7 test jobs failed Failed test jobs:
|
Test run: SUCCESSSummary: 7 of 7 test jobs passed |
Summary of changes
Use
override
andfinal
where appropriate, and eliminate unnecessaryvirtual
.Fix up
get_ip_address
following string-based API removal (#11942).Some other C++11 simplifications.
Marking as breaking change as it fixes up a previous breaking change.
Impact of changes
No new impact.
Migration actions required
No new migrations
Documentation
None
Pull request type
Test results
Reviewers
@michalpasztamobica