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

Move utils.h implementations to utils.cpp

This commit is contained in:
Matias Fontanini
2016-01-24 14:13:34 -08:00
parent d7df3a449e
commit 0cf3dd3342
13 changed files with 36 additions and 30 deletions

View File

@@ -38,6 +38,9 @@
#include "ip_address.h"
#include "internals.h"
// Fix for Windows interface define on combaseapi.h
#undef interface
namespace Tins {
class NetworkInterface;
@@ -163,7 +166,7 @@ TINS_API bool gateway_from_ip(IPv4Address ip, IPv4Address& gw_addr);
*
* \brief output ForwardIterator in which entries will be stored.
*/
template<class ForwardIterator>
template<typename ForwardIterator>
void route_entries(ForwardIterator output);
/**
@@ -286,7 +289,7 @@ dereference_until_pdu(T& value) {
} // Utils
} // Tins
template<class ForwardIterator>
template<typename ForwardIterator>
void Tins::Utils::route_entries(ForwardIterator output) {
std::vector<RouteEntry> entries = route_entries();
for (size_t i = 0; i < entries.size(); ++i) {