[cfe-dev] objc++: capture 'self' by value in lambda

James Gregurich bayoubengal at mac.com
Thu Jul 23 13:04:22 PDT 2015


greetings!

in Objc++,  I'm finding that the lambda capture clause [self]  does not appear to increase the retain count on self.  My understanding when using block syntax is that a capture of 'self' by value retains self.  Why is there a difference?  NOTE: ARC is off.



More information about the cfe-dev mailing list