User Tools

Site Tools


cplusplus:goingnative2013

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
cplusplus:goingnative2013 [2021/05/21 00:04]
127.0.0.1 external edit
cplusplus:goingnative2013 [2022/10/06 00:39] (current)
dblume [Advanced Optimization] whitespace only
Line 83: Line 83:
  
     std::bind(f, std::weak_ptr<Object>(n));     std::bind(f, std::weak_ptr<Object>(n));
-    +
 is not the same as this code: is not the same as this code:
  
     [n]{ f(std::weak_ptr<Object>(n)); }     [n]{ f(std::weak_ptr<Object>(n)); }
-    +
 The above code will bind the shared_ptr<Node> into the lambda's capture, extending the lifetime. The above code will bind the shared_ptr<Node> into the lambda's capture, extending the lifetime.
 But it is the same as this: But it is the same as this:
cplusplus/goingnative2013.1621580671.txt.gz ยท Last modified: 2021/05/21 00:04 by 127.0.0.1