Created
December 11, 2014 21:31
-
-
Save splhack/4615d0d4b1d131772c78 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <Foundation/Foundation.h> | |
| #import <vector> | |
| int main() | |
| { | |
| std::vector<__weak NSObject *> a; | |
| a.push_back([NSObject new]); | |
| a.push_back([NSObject new]); | |
| a.push_back([NSObject new]); | |
| for (auto& v : a) { | |
| NSLog(@"%@", v); | |
| } | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment