diff --git a/test/cpp/microbenchmarks/helpers.cc b/test/cpp/microbenchmarks/helpers.cc index b68c40a79d4a081af50a5dc6a0c407392c315f00..73ab9e4a1ac4f95870721defc8ce0eae4c749177 100644 --- a/test/cpp/microbenchmarks/helpers.cc +++ b/test/cpp/microbenchmarks/helpers.cc @@ -40,7 +40,7 @@ void TrackCounters::Finish(benchmark::State &state) { if (label.length() && label[0] == ' ') { label = label.substr(1); } - state.SetLabel(label); + state.SetLabel(label.c_str()); } void TrackCounters::AddToLabel(std::ostream &out, benchmark::State &state) {