Commit c52e055c authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Chip Turner

Fix a folly build failure under clang: ConvTest.cpp.

Summary: [Folly] Fix a folly build failure under clang: ConvTest.cpp.

Test Plan: Build the unit-test folly/test/ConvTest.cpp with clang.

Reviewed By: tudorb@fb.com, njormrod@fb.com

Subscribers: mathieubaudet, dougw

FB internal diff: D1446232

Tasks: 4723132
parent a9a04804
...@@ -936,6 +936,7 @@ void u2aAppendFollyBM(unsigned int n, uint64_t value) { ...@@ -936,6 +936,7 @@ void u2aAppendFollyBM(unsigned int n, uint64_t value) {
template <class String> template <class String>
struct StringIdenticalToBM { struct StringIdenticalToBM {
StringIdenticalToBM() {}
void operator()(unsigned int n, size_t len) const { void operator()(unsigned int n, size_t len) const {
String s; String s;
BENCHMARK_SUSPEND { s.append(len, '0'); } BENCHMARK_SUSPEND { s.append(len, '0'); }
...@@ -948,6 +949,7 @@ struct StringIdenticalToBM { ...@@ -948,6 +949,7 @@ struct StringIdenticalToBM {
template <class String> template <class String>
struct StringVariadicToBM { struct StringVariadicToBM {
StringVariadicToBM() {}
void operator()(unsigned int n, size_t len) const { void operator()(unsigned int n, size_t len) const {
String s; String s;
BENCHMARK_SUSPEND { s.append(len, '0'); } BENCHMARK_SUSPEND { s.append(len, '0'); }
......
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