point-to-point: Fix error "member access into incomplete type"

This commit is contained in:
Eduardo Almeida
2024-02-21 00:36:47 +00:00
parent 8e28f1559c
commit af67f5501e

View File

@@ -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<PointToPointNetDevice> m_src; //!< First NetDevice
Ptr<PointToPointNetDevice> m_dst; //!< Second NetDevice
};