Fix a folly build failure under clang: ConvTest.cpp.
authorYedidya Feldblum <yfeldblum@fb.com>
Mon, 21 Jul 2014 23:37:40 +0000 (16:37 -0700)
committerChip Turner <chip@fb.com>
Fri, 25 Jul 2014 16:06:23 +0000 (09:06 -0700)
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

folly/test/ConvTest.cpp

index ffe7934e23b125c80c448791e20bc02e8fa8b80d..a52869ea6967dd3e61a4e793699553030629a167 100644 (file)
@@ -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'); }
@@ -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'); }