Re: Challenge: adding new method overloads when existing consumers use {} with args

2022-07-27 Thread Thiago Macieira
[cross-posting to Qt dev ML - dunno if it'll arrive because I'm subscribed with different addresses] On Wednesday, 27 July 2022 14:54:55 PDT Friedrich W. H. Kossebau wrote: > And has no-one else yet run into this problem? E.g. Qt, anyone seen them > adding new overloads, what did they do there, i

Re: Challenge: adding new method overloads when existing consumers use {} with args

2022-07-27 Thread Thiago Macieira
On Wednesday, 27 July 2022 14:37:20 PDT Friedrich W. H. Kossebau wrote: > * new overload method (and any further ones) will stay special > * existing consumer code using {} is not that simple to map by human readers > as to which overload will be used > * needs C++17, so needs some additional marku

Re: Challenge: adding new method overloads when existing consumers use {} with args

2022-07-27 Thread Friedrich W. H. Kossebau
Am Mittwoch, 27. Juli 2022, 13:51:48 CEST schrieb Friedrich W. H. Kossebau: > Am Montag, 25. Juli 2022, 15:21:43 CEST schrieb Arjen Hiemstra: > > You could try using SFINAE: > > > > ``` > > struct Test { > > > > void foo() { } > > void foo(const std::vector& t) { } > > >

Re: Challenge: adding new method overloads when existing consumers use {} with args

2022-07-27 Thread Friedrich W. H. Kossebau
(David, somehow your emails do not make it from the mailinglist to my inbox sadly, no idea yet why. Saw your email by chance on the list web interface, and tosky forwarded it manually to me, so I can reply now here. So might miss out more :() Am Samstag, 23. Juli 2022, 20:26:47 CEST schrieb Dav

Re: Challenge: adding new method overloads when existing consumers use {} with args

2022-07-27 Thread Friedrich W. H. Kossebau
Am Montag, 25. Juli 2022, 15:21:43 CEST schrieb Arjen Hiemstra: > On Monday, 25 July 2022 14:22:45 CEST Friedrich W. H. Kossebau wrote: > > Am Montag, 25. Juli 2022, 10:19:39 CEST schrieb David Redondo: > > > Am Samstag, 23. Juli 2022, 17:20:08 CEST schrieb Friedrich W. H. > > > Kossebau: > > > Add