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 }