Skip to content

Unified eventbus impl for any and variant storage types#41

Merged
ptsouchlos merged 11 commits intodevelopfrom
feature/unify-storage-types
Apr 7, 2025
Merged

Unified eventbus impl for any and variant storage types#41
ptsouchlos merged 11 commits intodevelopfrom
feature/unify-storage-types

Conversation

@ptsouchlos
Copy link
Owner

@ptsouchlos ptsouchlos commented Mar 28, 2025

Changes

  • Added support to choose storage policy of event types as either std::any or std::variant
  • Added initial MacOS support in CMakePresets.json
  • New options in CMake to control building demo, tests and benchmarks
  • Added benchmark for comparing event dispatch between std::any and std::variant

@thejtshow Please take a look if you can. Thanks!

Resolves #33

Added policies to be able to switch between std::any and std::variant as the storage type inside the event bus.
Also added new project options as well to better control what gets build.
@ptsouchlos ptsouchlos requested a review from Copilot March 28, 2025 20:27
@ptsouchlos ptsouchlos self-assigned this Mar 28, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

Files not reviewed (11)
  • CMakeLists.txt: Language not supported
  • CMakePresets.json: Language not supported
  • benchmark/CMakeLists.txt: Language not supported
  • benchmark/src/event_bus.cpp: Language not supported
  • benchmark/src/main.cpp: Language not supported
  • cmake/CompilerWarnings.cmake: Language not supported
  • eventbus/CMakeLists.txt: Language not supported
  • eventbus/include/eventbus/detail/storage_policy.hpp: Language not supported
  • eventbus/include/eventbus/detail/value_traits.hpp: Language not supported
  • eventbus/include/eventbus/event_bus.hpp: Language not supported
  • eventbus/test/event_bus_tests.cpp: Language not supported

@ptsouchlos ptsouchlos force-pushed the feature/unify-storage-types branch from 1e19bf1 to 786c77f Compare March 28, 2025 20:43
@ptsouchlos ptsouchlos force-pushed the feature/unify-storage-types branch from 786c77f to f886d63 Compare March 28, 2025 20:48
Copy link
Contributor

@jtdavis777 jtdavis777 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this looks great. I have a few stylistic comments but the actual implementation of the bus handler looks good. I tend to prefer allowing implicit use of libraries over explicit make functions, but that's just my bias.

@ptsouchlos
Copy link
Owner Author

@ABeltramo please take a look when you can 👍

@ptsouchlos
Copy link
Owner Author

Overall this looks great. I have a few stylistic comments but the actual implementation of the bus handler looks good. I tend to prefer allowing implicit use of libraries over explicit make functions, but that's just my bias.

Awesome, thanks for the feedback. I think you made some good points. I'll see if I can address them. Thanks again!

@ptsouchlos ptsouchlos requested a review from jtdavis777 April 3, 2025 12:08
Resolve build issues due to deprecated (and removed) CMake minimum version.
Copy link
Contributor

@jtdavis777 jtdavis777 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ptsouchlos ptsouchlos merged commit c82d42b into develop Apr 7, 2025
21 checks passed
@ptsouchlos ptsouchlos deleted the feature/unify-storage-types branch April 7, 2025 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Investigate Adding a Variant Based Implementation

3 participants