/*
- * Copyright 2014 Facebook, Inc.
+ * Copyright 2015 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
return isLoopback() || inBinarySubnet({{0xfc, 0x00}}, 7);
}
+// public
bool IPAddressV6::isLinkLocal() const {
return inBinarySubnet({{0xfe, 0x80}}, 10);
}
buffer, INET6_ADDRSTRLEN,
nullptr, 0, NI_NUMERICHOST)) {
string ip(buffer);
- return std::move(ip);
+ return ip;
} else {
throw IPAddressFormatException("Invalid address with hex ",
"'", detail::Bytes::toHex(bytes(), 16), "'");