mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Restored *sizeof(int)
after merging PR #1776
This commit is contained in:
parent
bf63aca389
commit
de20b33dab
|
@ -20614,7 +20614,7 @@ and errors (when we didn't deal correctly with semi-constructed objects consiste
|
||||||
: mx(check_size(x))
|
: mx(check_size(x))
|
||||||
, my(check_size(y))
|
, my(check_size(y))
|
||||||
// now we know x and y have a valid size
|
// 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
|
// picture is ready-to-use
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user