Skip to content
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

managed_shared_memory::atomic_func param is a left reference #231

Open
qq1174159858 opened this issue Sep 26, 2024 · 0 comments
Open

managed_shared_memory::atomic_func param is a left reference #231

qq1174159858 opened this issue Sep 26, 2024 · 0 comments

Comments

@qq1174159858
Copy link

template
void atomic_func(Func &f)
{ mp_header->atomic_func(f);}

why not
template
void atomic_func(Func &&f)
{ mp_header->atomic_func(std::forward(func));}

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

No branches or pull requests

1 participant