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>
This commit is contained in:
FantasqueX 2024-01-05 18:35:20 +08:00 committed by GitHub
parent 07c98d5a44
commit a6b78ef168
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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) {
}
};