Skip to content

Commit

Permalink
fix: add missing forwarding reference capture
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-nguyen committed Feb 25, 2025
1 parent d6abad9 commit 634e46d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config_utilities/include/config_utilities/factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ class ModuleRegistry {
}

// wrap factory call to register any allocations
return [factory, key, type, create_callback](Args... args) -> BaseT* {
return [factory, key, type, create_callback](Args&&... args) -> BaseT* {
auto pointer = factory(std::forward<Args>(args)...);
create_callback(key, type, pointer);
return pointer;
Expand Down

0 comments on commit 634e46d

Please sign in to comment.