-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Removed using namespace std from all files #35741
Conversation
Review changes with SemanticDiff. |
PR #35741: Size comparison from fbc0d21 to 9d5df91 Full report (22 builds for cc13x4_26x4, cc32xx, nrfconnect, nxp, qpg, stm32, tizen)
|
9d5df91
to
e9ac903
Compare
PR #35741: Size comparison from fbc0d21 to e9ac903 Full report (51 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, linux, nrfconnect, nxp, psoc6, qpg, stm32, tizen)
|
PR #35741: Size comparison from fbc0d21 to e1fa3be Full report (74 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #35741: Size comparison from fbc0d21 to 8245330 Full report (88 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
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.
The description in https://github.com/project-chip/connectedhomeip/blob/master/src/lib/support/TypeTraits.h#L32 seems to say we intentionally overloaded this to have C++23 shims.
Don't we have other alternatives? i.e. for C++23 just use the existingimplementation from the standard instead of implementing our own.
This PR seems to propose to have the workaround forever instead of treating it as a temporary shim.
8653711
to
e342b2b
Compare
PR #35741: Size comparison from e9d7b2f to e342b2b Full report (88 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #35741: Size comparison from e9d7b2f to 7613b1b Full report (88 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
@andy31415 I have addressed the changes please take a look. |
* Removed using namespace std from all files * Fix compilation * Found some more files were using namespace std * Fix TV app * Use std::to_underlying with c++23 and later * Addressed review comments
Problem
using namespace std
creates ambiguity error to C++23 standard compiler. #35713.Changes
Test