Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: eventcallback from std::forward to args (opentibiabr#2962)
Using std::forward inside a loop can cause rvalue arguments to be moved and invalidated after the first iteration. This happens because std::forward preserves the value category, allowing rvalues to be moved. To ensure arguments remain valid across all iterations when invoking callbacks, avoid using std::forward inside the loop and pass arguments directly as args.... Resolves opentibiabr#2959
- Loading branch information