-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add _get_type_id to Impl #8
base: master
Are you sure you want to change the base?
Conversation
WalkthroughThe changes introduce a new static method Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 4
🧹 Outside diff range and nitpick comments (1)
include/olg_scheduler/olg_scheduler.hpp (1)
100-104
: Consider alternatives to custom RTTI implementationThe current implementation uses a manually maintained UUID for type identification, which could lead to:
- Maintenance overhead in ensuring unique IDs across the codebase
- No compile-time guarantee of uniqueness
- Potential for collisions if IDs are manually assigned
Consider these alternatives:
- Use built-in C++ RTTI with
typeid
andstd::type_info
if RTTI is enabled- Use
boost::typeindex
for a more robust type identification system that works even with RTTI disabled- If custom IDs are required, consider using a compile-time hash of the type name to ensure uniqueness
Would you like me to provide example implementations for any of these alternatives?
Summary by CodeRabbit
EventProxy
class.