Commit aa8dce11 authored by Michael Lee's avatar Michael Lee Committed by Facebook Github Bot 5

to_string is not supported everywhere

Summary: Also remove an extra `#include <strstream>` from JsonTest.cpp as it is no longer necessary.

Reviewed By: yfeldblum

Differential Revision: D2991381

fb-gh-sync-id: 386b8281726d034933ebdc26733dd35dc5ace949
shipit-source-id: 386b8281726d034933ebdc26733dd35dc5ace949
parent b363d9f7
......@@ -444,8 +444,8 @@ TEST_P(IPAddressMaskTest, Masks) {
IPAddress ip(param.address);
IPAddress masked = ip.mask(param.mask);
EXPECT_EQ(param.subnet, masked.str())
<< param.address << "/" << to_string(param.mask)
<< " -> " << param.subnet;
<< param.address << "/" << folly::to<std::string>(param.mask) << " -> "
<< param.subnet;
}
// Test inSubnet calculations
......@@ -567,7 +567,7 @@ TEST(IPAddress, V6Types) {
break;
default:
throw std::range_error("Invalid expected type: " +
to_string(tc.second));
folly::to<std::string>(tc.second));
}
}
}
......
......@@ -14,7 +14,6 @@
* limitations under the License.
*/
#include <limits>
#include <strstream>
#include <boost/next_prior.hpp>
#include <folly/json.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment