From de20b33dabfda58b1bf210450b2e61d71e552e67 Mon Sep 17 00:00:00 2001 From: Herb Sutter Date: Thu, 13 May 2021 11:36:50 -0700 Subject: [PATCH] Restored `*sizeof(int)` after merging PR #1776 --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 2f2fdcc..986f3d7 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -20614,7 +20614,7 @@ and errors (when we didn't deal correctly with semi-constructed objects consiste : mx(check_size(x)) , my(check_size(y)) // now we know x and y have a valid size - , data(mx * my) // will throw std::bad_alloc on error + , data(mx*my*sizeof(int)) // will throw std::bad_alloc on error { // picture is ready-to-use }