Skip to content

Conversation

@Pirulax
Copy link
Contributor

@Pirulax Pirulax commented Jan 21, 2022

As a bonus the return type doesn't have to be given as the template parameter! Yay!

Why? std::function is unnecessary overhead in this case (As it allocates memory for itself). This way we eliminate copies, and memory allocations.

@Pirulax Pirulax merged commit c372dc3 into multitheftauto:master Jan 22, 2022
@patrikjuvonen patrikjuvonen added this to the Next Release (1.6.0) milestone Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants