Re[24]: Оставаться в С++ или уходить?
От: Denis Ivlev  
Дата: 01.10.19 07:38
Оценка: :))) :))
Здравствуйте, night beast, Вы писали:

NB>зеленый что-то слышал про ПОД, но ничего не понял и додумал как сумел.


SVZ>>А можно ссылку на Стандарт, а то что-то я отстал от жизни.


NB>

NB>9.2.15 Nonstatic data members of a (non-union) class with the same access control (Clause 11) are allocated so that later members have higher addresses within a class object. The order of allocation of non-static data members with different access control is unspecified (11). Implementation alignment requirements might cause two adjacent members not to be allocated immediately after each other; so might requirements for space for managing virtual functions (10.3) and virtual base classes (10.1).


Я на плюсах давно не пишу, мне новые стандарты не знать простительно, но кое-что я еще помню:

https://stackoverflow.com/questions/15763091/do-these-members-have-unspecified-ordering/15763092

А вот как сипипи кодерки в лужу садятся (один про под не слыхал, другой что-то нагуглил, но не полностью) доставляет.
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.