Do not use pointer to create the reactor
Reactor is not shared. It is owned by listener, create in its constructor and is not shared with anybody, so created in listener's destructor. Here a unique_ptr would do the trick but not using a ptr works fine and remove complexity a bit.
Showing
Please register or sign in to comment