[PR #1390] [MERGED] Remove uses of implicit namespace std #1951

Closed
opened 2026-03-04 02:02:57 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/1390
Author: @gaul
Created: 9/11/2020
Status: Merged
Merged: 9/13/2020
Merged by: @ggtakec

Base: masterHead: namespace-std


📝 Commits (1)

  • 1043e08 Remove uses of implicit namespace std

📊 Changes

26 files changed (+602 additions, -652 deletions)

View changed files

📝 src/addhead.cpp (+17 -19)
📝 src/autolock.cpp (+0 -2)
📝 src/bodydata.cpp (+0 -2)
📝 src/cache.cpp (+16 -18)
📝 src/common_auth.cpp (+9 -11)
📝 src/curl.cpp (+191 -193)
📝 src/curl_handlerpool.cpp (+0 -2)
📝 src/curl_multi.cpp (+0 -2)
📝 src/curl_util.cpp (+43 -45)
📝 src/fdcache.cpp (+24 -26)
📝 src/fdcache_entity.cpp (+9 -11)
📝 src/fdcache_page.cpp (+11 -13)
📝 src/fdcache_stat.cpp (+10 -12)
📝 src/gnutls_auth.cpp (+0 -2)
📝 src/metaheader.cpp (+6 -8)
📝 src/mpu_util.cpp (+3 -5)
📝 src/nss_auth.cpp (+0 -2)
📝 src/openssl_auth.cpp (+0 -2)
📝 src/s3fs.cpp (+150 -152)
📝 src/s3fs_help.cpp (+0 -2)

...and 6 more files

📄 Description

Fixed via:

sed -i '/using namespace std/{N;d}' src/*.cpp
sed -i 's/ string/ std::string/g' src/*.cpp
sed -i 's/(string/(std::string/g' src/*.cpp
sed -i 's/\[string/\[std::string/g' src/*.cpp
sed -i 's/^string/std::string/g' src/*.cpp
sed -i 's/ ifstream/ std::ifstream/g' src/*.cpp
sed -i 's/ istringstream/ std::istringstream/g' src/*.cpp
sed -i 's/ ostringstream/ std::ostringstream/g' src/*.cpp
sed -i 's/ max(/ std::max(/g' src/*.cpp
sed -i 's/ min(/ std::min(/g' src/*.cpp
sed -i 's/ endl/ std::endl/g' src/*.cpp

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/s3fs-fuse/s3fs-fuse/pull/1390 **Author:** [@gaul](https://github.com/gaul) **Created:** 9/11/2020 **Status:** ✅ Merged **Merged:** 9/13/2020 **Merged by:** [@ggtakec](https://github.com/ggtakec) **Base:** `master` ← **Head:** `namespace-std` --- ### 📝 Commits (1) - [`1043e08`](https://github.com/s3fs-fuse/s3fs-fuse/commit/1043e08dfa87903c62c2388b1d6949ddb2bd9d92) Remove uses of implicit namespace std ### 📊 Changes **26 files changed** (+602 additions, -652 deletions) <details> <summary>View changed files</summary> 📝 `src/addhead.cpp` (+17 -19) 📝 `src/autolock.cpp` (+0 -2) 📝 `src/bodydata.cpp` (+0 -2) 📝 `src/cache.cpp` (+16 -18) 📝 `src/common_auth.cpp` (+9 -11) 📝 `src/curl.cpp` (+191 -193) 📝 `src/curl_handlerpool.cpp` (+0 -2) 📝 `src/curl_multi.cpp` (+0 -2) 📝 `src/curl_util.cpp` (+43 -45) 📝 `src/fdcache.cpp` (+24 -26) 📝 `src/fdcache_entity.cpp` (+9 -11) 📝 `src/fdcache_page.cpp` (+11 -13) 📝 `src/fdcache_stat.cpp` (+10 -12) 📝 `src/gnutls_auth.cpp` (+0 -2) 📝 `src/metaheader.cpp` (+6 -8) 📝 `src/mpu_util.cpp` (+3 -5) 📝 `src/nss_auth.cpp` (+0 -2) 📝 `src/openssl_auth.cpp` (+0 -2) 📝 `src/s3fs.cpp` (+150 -152) 📝 `src/s3fs_help.cpp` (+0 -2) _...and 6 more files_ </details> ### 📄 Description Fixed via: ``` sed -i '/using namespace std/{N;d}' src/*.cpp sed -i 's/ string/ std::string/g' src/*.cpp sed -i 's/(string/(std::string/g' src/*.cpp sed -i 's/\[string/\[std::string/g' src/*.cpp sed -i 's/^string/std::string/g' src/*.cpp sed -i 's/ ifstream/ std::ifstream/g' src/*.cpp sed -i 's/ istringstream/ std::istringstream/g' src/*.cpp sed -i 's/ ostringstream/ std::ostringstream/g' src/*.cpp sed -i 's/ max(/ std::max(/g' src/*.cpp sed -i 's/ min(/ std::min(/g' src/*.cpp sed -i 's/ endl/ std::endl/g' src/*.cpp ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 02:02:57 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#1951
No description provided.