/*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
"'"));
}
IPAddress subnet(vec.at(0));
- uint8_t cidr = (defaultCidr > -1) ? defaultCidr : (subnet.isV4() ? 32 : 128);
+ auto cidr =
+ uint8_t((defaultCidr > -1) ? defaultCidr : (subnet.isV4() ? 32 : 128));
if (elemCount == 2) {
try {
} else {
throw std::invalid_argument("Unknown address family");
}
- return {IPAddress(0), 0};
}
[[noreturn]] void IPAddress::asV4Throw() const {
"Can't convert address with family ", fam, " to AF_INET6 address"));
}
-
-} // folly
+} // namespace folly