Challenge: adding new method overloads when existing consumers use {} with args
David Hurka
david.hurka at mailbox.org
Wed Jul 27 17:06:24 BST 2022
On Wednesday, July 27, 2022 1:51:48 PM CEST Friedrich W. H. Kossebau wrote:
> This inspires another idea though (still need to investigate if that works):
>
> there could be another template overload added which catches any
> `std::initializer_list` arg and delegating to the old method, thus removing
> the ambiguity and also allowing to emit a compiler warning for this usage?
That makes sense to me. The template overload could just be marked as
deprecated (which even fits the situation well).
More information about the kde-devel
mailing list