• About logic in the formation of the inclusion of header files.

    From vlasovdl@gmail.com@21:1/5 to All on Thu Feb 7 10:34:13 2019
    I apologize. Maybe I'm not a great connoisseur of C ++ and ACE. I can not understand: why is it necessary to include in ace\Event_Handler.h a forward declaration like

    class ACE_Reactor;

    instead #include "ace\Reactor.h"?

    When I inherit from ACE_Event_Handler like this

    class ClientAcceptor : public ACE_Event_Handler {...}

    I'm sure I need to include the header file ace\Event_Handler.h in which the ACE_Event_Handler class is defined. But, it turns out, I must also include ace\Reactor.h.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)