Fixed compile errors with C++23#2424
Conversation
WalkthroughThe changes update the Changes
Poem
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
TAO/orbsvcs/ImplRepo_Service/Locator_Loader.cpp(1 hunks)TAO/orbsvcs/ImplRepo_Service/Locator_Loader.h(1 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
TAO/orbsvcs/ImplRepo_Service/Locator_Loader.cpp (1)
TAO/orbsvcs/ImplRepo_Service/Locator_Loader.h (3)
ImR_Locator_Loader(17-43)ImR_Locator_Loader(21-21)ImR_Locator_Loader(41-41)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (21)
- GitHub Check: Codacy Static Code Analysis
- GitHub Check: VS2022Debug64Cxx17
- GitHub Check: VS2022WChar
- GitHub Check: VS2022Release32
- GitHub Check: VS2022WChar
- GitHub Check: VS2022Debug64
- GitHub Check: VS2022Debug64Cxx20
- GitHub Check: VS2022Release64
- GitHub Check: MINGW64-gcc
- GitHub Check: VS2022Debug32
- GitHub Check: ubuntu-24.04 clang++-16
- GitHub Check: ubuntu-24.04 g++-10 CORBA/e compact
- GitHub Check: ubuntu-24.04 clang++-14
- GitHub Check: ubuntu-22.04 clang++-13
- GitHub Check: ubuntu-22.04 g++-9
- GitHub Check: ubuntu-24.04 g++-13
- GitHub Check: ubuntu-22.04 g++-10
- GitHub Check: ubuntu-24.04 g++-11
- GitHub Check: ubuntu-24.04 g++-12
- GitHub Check: ubuntu-22.04 clang++-12
- GitHub Check: ubuntu-24.04 g++
🔇 Additional comments (3)
TAO/orbsvcs/ImplRepo_Service/Locator_Loader.h (2)
20-20: Good modernization for C++23 compatibility.Explicitly defaulting the constructor is a good practice and helps avoid potential issues with the rule of five/zero in modern C++.
21-21: Appropriate destructor declaration.Adding a destructor declaration is consistent with modern C++ practices when you have custom resource management, even if the destructor implementation is empty.
TAO/orbsvcs/ImplRepo_Service/Locator_Loader.cpp (1)
23-25: Consistent with header changes.The change from constructor implementation to destructor implementation is correct and consistent with the header file changes. The empty destructor body is appropriate since:
runner_is astd::unique_ptrthat handles its own cleanupservice_andopts_appear to be value types that handle their own destruction- The destructor serves as a placeholder for any future cleanup logic if needed
|
What was the error? |
|
|
I wonder why we didn't see it on either build on https://www.dre.vanderbilt.edu/scoreboard/tao.html (both -std=c++23)? |
|
This is with another compiler which uses C++23 as default, but can't share the logs and details publicly at this moment. |
Summary by CodeRabbit