Skip to content

KformatPrivate: fix deprecation enum arithmetic with float

Méven Car requested to merge work/meven/fix-deprecation-warning into master

Warning of the form: Arithmetic between enumeration type 'TimeConstants' and floating-point type 'double' is deprecated

A simple '+' operator allows to quickly convert the enum to int.

Some more context: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2864r0.pdf

Merge request reports