There is no need for a default hold. [] will be fine.
As I wrote in the comments, this is an unverified snippet written to illustrate a completely unrelated thing (i.e. call_once ). There is not much point in reading too much.
However, since the genre of "unverified fragment written for installation on a slide", [=] is probably the safest default lambda introducer: [&] can cause data races or dangling links, [] it would be wrong if you sometime capture is needed, and explicit captures take up valuable space on the slide - and require actually thinking about captures ......
source share