[evalsolution] Use if constexpr

Merged Timo Koch requested to merge cleanup/replace-ifelse-by-ifconstexpr into master

Merge request reports