Fix using namespace_name

https://github.com/huihut/interview/issues/121
This commit is contained in:
huihut
2025-07-24 21:50:58 +08:00
parent 77b04416e2
commit 1ba799bb78
2 changed files with 3 additions and 3 deletions

View File

@@ -566,7 +566,7 @@ Derived(parms) : Base(args) { }
`using 指示` 使得某个特定命名空间中所有名字都可见,这样我们就无需再为它们添加任何前缀限定符了。如:
```cpp
using namespace_name name;
using namespace namespace_name;
```
#### 尽量少使用 `using 指示` 污染命名空间

View File

@@ -570,7 +570,7 @@ Derived (parms): Base (args) {}
The `using directive` makes all names in a particular namespace visible, so we don't need to add any prefix qualifiers to them. Such as:
```cpp
using namespace_name name;
using namespace namespace_name;
```
#### Minimize `using directives` to pollute namespaces