From 90aa8665b5080f7a931567fbc92cda883bc870b4 Mon Sep 17 00:00:00 2001 From: Dominic Hamon Date: Tue, 7 Nov 2017 10:33:07 -0800 Subject: [PATCH] Reorder inline to avoid warning on MSVC (#469) Fixes #467 --- include/benchmark/benchmark.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/benchmark/benchmark.h b/include/benchmark/benchmark.h index f4e87620..16d2b903 100644 --- a/include/benchmark/benchmark.h +++ b/include/benchmark/benchmark.h @@ -642,10 +642,10 @@ struct State::StateIterator { State* const parent_; }; -BENCHMARK_ALWAYS_INLINE inline State::StateIterator State::begin() { +inline BENCHMARK_ALWAYS_INLINE State::StateIterator State::begin() { return StateIterator(this); } -BENCHMARK_ALWAYS_INLINE inline State::StateIterator State::end() { +inline BENCHMARK_ALWAYS_INLINE State::StateIterator State::end() { StartKeepRunning(); return StateIterator(); }