Linux compile fix

This commit is contained in:
Aleksandar Fabijanic
2012-08-13 02:53:06 +00:00
parent 273b9c92f8
commit e8931a928c

View File

@@ -307,7 +307,7 @@ const IPAddress& NetworkInterfaceImpl::findFirstAddress(IPAddress::Family family
if (addr.family() == family) return addr; if (addr.family() == family) return addr;
} }
throw NotFoundException(format("%s family address not found.", family == IPAddress::IPv4 ? "IPv4" : "IPv6")); throw NotFoundException(format("%s family address not found.", (family == IPAddress::IPv4) ? std::string("IPv4") : std::string("IPv6")));
} }