A nice nugget about a handy make_weak
one-liner:
Automatically Made Weak
by Brett Hall
From the article:
I’ve been experimenting with the new “auto everything” style in C++. I also make regular use of
std::weak_ptr
... [and wouldn't it be nice if] we can just typeauto weak = make_weak(shared);
Add a Comment
Comments are closed.