Commit b24f3cf8 authored by Tudor Bosman's avatar Tudor Bosman Committed by Jordan DeLong

static constexpr in enclosing class + lambdas make compilers unhappy?

Test Plan: build

Reviewed By: dneiter@fb.com

FB internal diff: D630324
parent 47fc6cdf
......@@ -48,7 +48,6 @@ class StringResplitter : public Operator<StringResplitter> {
class Generator : public GenImpl<StringPiece, Generator<Source>> {
Source source_;
char delimiter_;
static constexpr size_t kDefaultLineSize = 256;
public:
Generator(Source source, char delimiter)
: source_(std::move(source)), delimiter_(delimiter) { }
......@@ -85,6 +84,7 @@ class StringResplitter : public Operator<StringResplitter> {
if (!buffer) {
// Arbitrarily assume that we have half a line and get enough
// room for twice that.
constexpr size_t kDefaultLineSize = 256;
buffer = IOBuf::create(std::max(kDefaultLineSize, 2 * in.size()));
}
buffer->reserve(0, in.size());
......
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