mirror of
https://github.com/mfontanini/libtins
synced 2026-01-30 13:34:27 +01:00
Modified IPv4Address interface and fixed some tests.
This commit is contained in:
@@ -58,8 +58,8 @@ IPv4Address::operator std::string() const {
|
||||
return Utils::ip_to_string(ip_addr);
|
||||
}
|
||||
|
||||
bool IPv4Address::operator==(const std::string &rhs) const {
|
||||
return ip_addr == Utils::ip_to_int(rhs);
|
||||
std::string IPv4Address::to_string() const {
|
||||
return Utils::ip_to_string(ip_addr);
|
||||
}
|
||||
|
||||
uint32_t IPv4Address::ip_to_int(const string &ip) {
|
||||
|
||||
Reference in New Issue
Block a user