Does this comply with the standard?
class Foo { Bar m_bar; Bar * m_woo; public: Foo() : m_bar(42, 123), m_woo(&m_bar) { } };
It is right. What is wrong is the dereferencing of what the pointer is before this particular subobject has been fully initialized.
Source: https://habr.com/ru/post/1744026/More articles:Validating Predicate Logic Using Coq - Beginner Syntax - predicateMEMORY (HEAP) против InnoDB в среде чтения и записи - heapПроизводительность основных данных deleteObject и сохранение контекста управляемого объекта - iphoneChange gcc compiler error text - c ++Should I base my Embedded Linux product on Qt? - qtDefine city district from coordinates - google-mapsfriend declaration in C ++ - c ++"RFC 2833 RTP Event" Sequential Events and the "End End" Bit - rtpHow can I tell where log4net thinks it is getting its configuration file? - log4netjQuery boring selector? - jqueryAll Articles