From af67f5501ee1f2b1ebb6ce06eef13d40338e6e3b Mon Sep 17 00:00:00 2001 From: Eduardo Almeida Date: Wed, 21 Feb 2024 00:36:47 +0000 Subject: [PATCH] point-to-point: Fix error "member access into incomplete type" --- src/point-to-point/model/point-to-point-channel.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/point-to-point/model/point-to-point-channel.h b/src/point-to-point/model/point-to-point-channel.h index 070fe36b0..4344ea259 100644 --- a/src/point-to-point/model/point-to-point-channel.h +++ b/src/point-to-point/model/point-to-point-channel.h @@ -197,14 +197,9 @@ class PointToPointChannel : public Channel /** \brief Create the link, it will be in INITIALIZING state * */ - Link() - : m_state(INITIALIZING), - m_src(nullptr), - m_dst(nullptr) - { - } + Link() = default; - WireState m_state; //!< State of the link + WireState m_state{INITIALIZING}; //!< State of the link Ptr m_src; //!< First NetDevice Ptr m_dst; //!< Second NetDevice };