diff --git a/include/gz/transport/Node.hh b/include/gz/transport/Node.hh index 890240d08..f4eb284b4 100644 --- a/include/gz/transport/Node.hh +++ b/include/gz/transport/Node.hh @@ -198,9 +198,11 @@ namespace gz #endif }; + public: Node(); + /// \brief Constructor. /// \param[in] _options Node options. - public: explicit Node(const NodeOptions &_options = NodeOptions()); + public: explicit Node(const NodeOptions &_options); /// \brief Destructor. public: virtual ~Node(); diff --git a/src/Node.cc b/src/Node.cc index a152b7ade..4dbc29598 100644 --- a/src/Node.cc +++ b/src/Node.cc @@ -514,6 +514,12 @@ Node::Node(const NodeOptions &_options) this->dataPtr->options = _options; } +////////////////////////////////////////////////// +Node::Node(): + Node(gz::transport::NodeOptions()) +{ +} + ////////////////////////////////////////////////// Node::~Node() {