Merge pull request #337 from hankail05/iostream

c++: make cin recognize whether 'using namespace std' exists
This commit is contained in:
Andrea Crotti 2019-09-08 12:37:12 +01:00 committed by GitHub
commit 676a6ddc19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -2,4 +2,6 @@
# name: cin
# key: cin
# --
cin >> $0;
`(progn (goto-char (point-min)) (unless (re-search-forward
"^using\\s-+namespace std;" nil 'no-error) "std::"))
`cin >> $0;