1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-28 04:34:27 +01:00

Remove inclusion of algorithm almost everywhere

This commit is contained in:
Matias Fontanini
2017-04-30 18:51:55 -07:00
parent 58a4d336b9
commit a07b3e8a3a
19 changed files with 87 additions and 110 deletions

View File

@@ -37,7 +37,6 @@
#include <ws2tcpip.h>
#include <mstcpip.h>
#endif
#include <algorithm>
#include <limits>
#include <sstream>
#include <iostream>
@@ -45,7 +44,8 @@
#include "address_range.h"
#include "exceptions.h"
using std::fill;
using std::memset;
using std::memcpy;
using std::string;
using std::ostream;
@@ -67,7 +67,7 @@ IPv6Address IPv6Address::from_prefix_length(uint32_t prefix_length) {
}
IPv6Address::IPv6Address() {
fill(address_, address_ + address_size, 0);
memset(address_, 0, address_size);
}
IPv6Address::IPv6Address(const char* addr) {
@@ -75,7 +75,7 @@ IPv6Address::IPv6Address(const char* addr) {
}
IPv6Address::IPv6Address(const_iterator ptr) {
std::copy(ptr, ptr + address_size, address_);
memcpy(address_, ptr, address_size);
}
IPv6Address::IPv6Address(const std::string& addr) {