Closed jessp01 closed 2 years ago
Thank you @jessp01 !
If you squash the commits into one (as the last two are merely cleanup of the first), this should be ready to be merged.
(I'm not familiar enough with c++ at this point to understand the warning, but maybe this led to this in the first place ;) )
If you need any input to do this, please let us know. 👍
@jessp01 Hey, thanks for patching this. I've not done that myself, as I wanted to squash the problem at its root and note by merely work-arounding the symptoms. I'll take a look into this by myself again, but maybe we'll just go with this instead.
And yes, as @uvwxy already mentioned - whoever merges this: Please squash the commits!
Maybe this is a note to my future-self, which will 100% ignore this...
And therefore that commit is the proper fix. Thanks for your attempt to fix this, it was just at the wrong place. :grin:
Fix
ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second
warnings.