Added a link to the page describing EBO.

This commit is contained in:
Andrey Semashev 2021-12-08 16:15:48 +03:00
parent b6119df27f
commit 96169c9fc6

View File

@ -1942,9 +1942,9 @@ above was 12-24 bytes on various compilers for the Win32 platform,
instead of the expected 8 bytes. instead of the expected 8 bytes.
Strictly speaking, it was not the library's fault [ndash] the language rules Strictly speaking, it was not the library's fault [ndash] the language rules
allow the compiler to apply the empty base class optimization in that allow the compiler to apply the [@https://en.cppreference.com/w/cpp/language/ebo empty base class optimization]
situation. In principle an arbitrary number of empty base classes can be in that situation. In principle an arbitrary number of empty base classes can
allocated at the same offset, provided that none of them have a common be allocated at the same offset, provided that none of them have a common
ancestor (see [sect]10 \[class.derived\] paragraph 8 of the C++11 standard). ancestor (see [sect]10 \[class.derived\] paragraph 8 of the C++11 standard).
But the language definition also does not ['require] implementations But the language definition also does not ['require] implementations