Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header file 裡的 using namespace 需要限制範圍 #4

Open
mosdeo opened this issue Oct 16, 2019 · 2 comments
Open

Header file 裡的 using namespace 需要限制範圍 #4

mosdeo opened this issue Oct 16, 2019 · 2 comments

Comments

@mosdeo
Copy link
Owner

mosdeo commented Oct 16, 2019

No description provided.

@mosdeo
Copy link
Owner Author

mosdeo commented Oct 16, 2019

原因:以免 namespace 作用溢出到引用的檔案

@mosdeo mosdeo changed the title Header file 裡的 using namespace 需要限制範圍,以免作用溢出到引用的檔案 Header file 裡的 using namespace 需要限制範圍 Oct 16, 2019
@mosdeo
Copy link
Owner Author

mosdeo commented Oct 17, 2019

這邊有講到幾種限制方法
https://docs.microsoft.com/zh-tw/cpp/cpp/namespaces-cpp?view=vs-2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant