Skip to content

Commit acf7eb6

Browse files
committed
changed pipelines to constexpr arrays
1 parent 45b442a commit acf7eb6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test_runner.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ void teardown_step(step_pipeline_context& context)
181181
}
182182

183183
// clang-format off
184-
std::vector<void (*)(step_pipeline_context&)> step_pipeline = {
184+
constexpr const std::array<void (*)(step_pipeline_context&), 6> step_pipeline = {
185185
skip_step,
186186
find_step,
187187
hook_before_step,
@@ -281,7 +281,7 @@ void verbose_end_print(scenario_pipeline_context& context)
281281
}
282282

283283
// clang-format off
284-
std::vector<void (*)(scenario_pipeline_context&)> scenario_pipeline = {
284+
constexpr const std::array<void (*)(scenario_pipeline_context&), 10> scenario_pipeline = {
285285
verbose_start_print,
286286
hook_before_scenario,
287287
is_scenario_ignored,

0 commit comments

Comments
 (0)