1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Add missing stdexcept include in routing_utils.cpp

This commit is contained in:
Matias Fontanini
2017-04-30 20:09:47 -07:00
parent b2173ffb86
commit 01475679d1
3 changed files with 5 additions and 3 deletions

View File

@@ -162,12 +162,12 @@ public:
/** /**
* Dereference and get the stored PDU * Dereference and get the stored PDU
*/ */
value_type operator*(); PDU& operator*();
/** /**
* Dereference and get the stored PDU * Dereference and get the stored PDU
*/ */
const value_type operator*() const; const PDU& operator*() const;
private: private:
pointer pdu_; pointer pdu_;
}; };

View File

@@ -51,7 +51,7 @@ PDUIterator::value_type PDUIterator::operator*() {
return *pdu_; return *pdu_;
} }
const PDUIterator::value_type PDUIterator::operator*() const { const PDU& PDUIterator::operator*() const {
return *pdu_; return *pdu_;
} }

View File

@@ -55,6 +55,7 @@
#endif #endif
#include <set> #include <set>
#include <fstream> #include <fstream>
#include <stdexcept>
#include "network_interface.h" #include "network_interface.h"
using std::vector; using std::vector;
@@ -62,6 +63,7 @@ using std::string;
using std::set; using std::set;
using std::ifstream; using std::ifstream;
using std::istream; using std::istream;
using std::runtime_error;
namespace Tins { namespace Tins {
namespace Utils { namespace Utils {