Skip to content

Commit

Permalink
Fix a folly build failure under clang: ConvTest.cpp.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yfeldblum authored and Chip Turner committed Jul 25, 2014
1 parent a9a0480 commit c52e055
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions folly/test/ConvTest.cpp
Expand Up @@ -936,6 +936,7 @@ void u2aAppendFollyBM(unsigned int n, uint64_t value) {

template <class String>
struct StringIdenticalToBM {
StringIdenticalToBM() {}
void operator()(unsigned int n, size_t len) const {
String s;
BENCHMARK_SUSPEND { s.append(len, '0'); }
Expand All @@ -948,6 +949,7 @@ struct StringIdenticalToBM {

template <class String>
struct StringVariadicToBM {
StringVariadicToBM() {}
void operator()(unsigned int n, size_t len) const {
String s;
BENCHMARK_SUSPEND { s.append(len, '0'); }
Expand Down

0 comments on commit c52e055

Please sign in to comment.