Skip to content

Commit

Permalink
point-to-point: Fix error "member access into incomplete type"
Browse files Browse the repository at this point in the history
  • Loading branch information
edalm committed Feb 23, 2024
1 parent 8e28f15 commit af67f55
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/point-to-point/model/point-to-point-channel.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
}

WireState m_state; //!< State of the link
Link() = default;

WireState m_state{INITIALIZING}; //!< State of the link
Ptr<PointToPointNetDevice> m_src; //!< First NetDevice
Ptr<PointToPointNetDevice> m_dst; //!< Second NetDevice
};
Expand Down

0 comments on commit af67f55

Please sign in to comment.