simplify with foreach loop

9 jobs for mh_optimization in 6 minutes and 33 seconds (queued for 5 seconds)
Status Job ID Name Coverage
  Test
passed clang-c++11 #133386
Linux

00:06:32

passed cppcheck #133388
Linux

00:00:29

passed doc #133393
Linux

00:00:10

passed gcc-c++11 #133385
Linux

00:03:43

passed macos-c++11 #133387
Apple

00:03:26

passed VS2015-32-bit #133392
VS2015

00:01:21

passed VS2015-64-bit #133391
VS2015

00:01:34

passed VS2017-32-bit #133390
VS2017

00:01:29

passed VS2017-64-bit #133389
VS2015

00:01:35