From 881a1e0030a8576bfca2600ec93b12b428f9839a Mon Sep 17 00:00:00 2001 From: Jllobvemy <61646964+jllobvemy@users.noreply.github.com> Date: Sun, 10 Apr 2022 09:45:48 +0800 Subject: [PATCH] Update item11.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 勘误 --- 3.MovingToModernCpp/item11.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3.MovingToModernCpp/item11.md b/3.MovingToModernCpp/item11.md index 1baea50..2a2b086 100644 --- a/3.MovingToModernCpp/item11.md +++ b/3.MovingToModernCpp/item11.md @@ -83,7 +83,7 @@ void processPointer(void*) = delete; template<> void processPointer(char*) = delete; ``` -现在如果使用`void*`和`char*`调用`processPointer`就是无效的,按常理说`const void*`和`const void*`也应该无效,所以这些实例也应该标注`delete`: +现在如果使用`void*`和`char*`调用`processPointer`就是无效的,按常理说`const void*`和`const char*`也应该无效,所以这些实例也应该标注`delete`: ```cpp template<> void processPointer(const void*) = delete;