Skip to content

Commit

Permalink
Update item11.md
Browse files Browse the repository at this point in the history
勘误
  • Loading branch information
jllobvemy authored and Yi Yang committed Apr 15, 2022
1 parent 4eef4da commit 881a1e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 3.MovingToModernCpp/item11.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void processPointer<void>(void*) = delete;
template<>
void processPointer<char>(char*) = delete;
```
现在如果使用`void*``char*`调用`processPointer`就是无效的,按常理说`const void*``const void*`也应该无效,所以这些实例也应该标注`delete`:
现在如果使用`void*``char*`调用`processPointer`就是无效的,按常理说`const void*``const char*`也应该无效,所以这些实例也应该标注`delete`:
```cpp
template<>
void processPointer<const void>(const void*) = delete;
Expand Down

0 comments on commit 881a1e0

Please sign in to comment.