[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Challenge: adding new method overloads when existing consumers use {} with args
From: David Hurka <david.hurka () mailbox ! org>
Date: 2022-07-27 16:06:24
Message-ID: 4414480.LvFx2qVVIh () doro
[Download RAW message or body]
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).
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic