From a6b78ef16832e6774e0277495ac628b253c9244a Mon Sep 17 00:00:00 2001 From: FantasqueX Date: Fri, 5 Jan 2024 18:35:20 +0800 Subject: [PATCH] Change Fixture to use non-const SetUp and TearDown in example (#1723) Const SetUp and TearDown were deprecated in https://github.com/google/benchmark/pull/285 Co-authored-by: dominic <510002+dmah42@users.noreply.github.com> --- docs/user_guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/user_guide.md b/docs/user_guide.md index 2ceb13eb..95f57b3e 100644 --- a/docs/user_guide.md +++ b/docs/user_guide.md @@ -591,10 +591,10 @@ For Example: ```c++ class MyFixture : public benchmark::Fixture { public: - void SetUp(const ::benchmark::State& state) { + void SetUp(::benchmark::State& state) { } - void TearDown(const ::benchmark::State& state) { + void TearDown(::benchmark::State& state) { } };