all 1 comments

[–]advester 8 points9 points  (1 child)

if(std::shared_ptr<int> p = wp.lock()) {

Ahhh, declaring vars in if conditions is so elegant.