MSVC needs explicit type in qMax template method.