#define FOLLY_VARINT_H_
#include <type_traits>
+#include <folly/Conv.h>
#include <folly/Range.h>
namespace folly {
}
if (p == end) {
throw std::invalid_argument("Invalid varint value. Too small: " +
- std::to_string(end - begin) + " bytes");
+ folly::to<std::string>(end - begin) +
+ " bytes");
}
val |= static_cast<uint64_t>(*p++) << shift;
}