mirror of https://github.com/google/benchmark.git
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:
parent
07c98d5a44
commit
a6b78ef168
|
@ -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) {
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue