-
Notifications
You must be signed in to change notification settings - Fork 669
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
fix: cpp17 namespaces #8526
fix: cpp17 namespaces #8526
Conversation
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
72fd6af
to
8ca7fb0
Compare
Signed-off-by: Yuri Guimaraes <[email protected]>
a56326e
to
55cd1d0
Compare
Thank for submitting this PR!! IMO, changing namespace for the specific Hardware (e.g. Roscube) and non standard compilers is not good to keep the autoware codebase healthy. |
Would be nice to keep compatibility with other devices by such a simple syntax change. I don't think we have a lot of nested namespaces within single component, thus this change will not decrease readability.
However, edge devices vendors slowly integrate JetPack 6.0 to their products and in near future this change will be not necessary. |
@amc-nu @a-yyg @Shin-kyoto @amadeuszsz |
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.
4a40541
to
da54f39
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8526 +/- ##
==========================================
- Coverage 24.08% 24.07% -0.01%
==========================================
Files 1399 1399
Lines 102446 102451 +5
Branches 38915 38920 +5
==========================================
- Hits 24672 24670 -2
+ Misses 75270 75244 -26
- Partials 2504 2537 +33
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Use traditional-style nameplace nesting for nvcc Signed-off-by: Yuri Guimaraes <[email protected]> Co-authored-by: Yuri Guimaraes <[email protected]>
Use traditional-style nameplace nesting for nvcc Signed-off-by: Yuri Guimaraes <[email protected]> Co-authored-by: Yuri Guimaraes <[email protected]>
Use traditional-style nameplace nesting for nvcc Signed-off-by: Yuri Guimaraes <[email protected]> Co-authored-by: Yuri Guimaraes <[email protected]>
Description
Replace C++17-style namespaces with nested ones to allow compilation on Edge-Auto on the Roscube, which has a noncompliant c++17 compiler for the nodes:
Related links
Parent Issue:
tier4/edge-auto-jetson#57
How was this PR tested?
It was tested on Edge-Auto platform on both the ADLink AVA3510 and Roscube RQX-58G. https://edge.auto/
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.