r/cpp • • Sep 20 '26

Magic statics vs. std::call_once

https://devblogs.microsoft.com/oldnewthing/20260916-00/?p=112703
73 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/Low-Ad-4390 Sep 21 '26

You’ve been provided with an answer. What in it does not make sense for you? Your ui and data looks like a lot of shared pointers? What do you mean? This seems like a messed up ownership strategy.