Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 1
    Wrap the function call in a lambda. related/dupe: stackoverflow.com/questions/65811716/… Commented Mar 1, 2022 at 14:35
  • 1
    maybe use_funct<void()>(do_something)? Commented Mar 1, 2022 at 14:39
  • @康桓瑋 Why I'm feeling a little stupid? Commented Mar 1, 2022 at 14:49
  • @NathanOliver I was missing that, reading now Commented Mar 1, 2022 at 14:51