Address 'whitespace in literal' decreation warning from clang++-20 (closes #2343)#2344
Address 'whitespace in literal' decreation warning from clang++-20 (closes #2343)#2344eddelbuettel wants to merge 1 commit intosimdjson:masterfrom
Conversation
|
@eddelbuettel I am skeptical of this PR because you are patching a secret dependency that we have... and this dependency should only ever come in if std::string_view is missing. Yet you are making a reference in the issue to C++20... but C++20 requires std::string_view. So it seems likely that this PR does no good. (It is also probably not harmful per se.) |
|
🤷♂️ I have you the link to Brian Ripley's tests on Fedora with Also, I have zero choice in the matter. If I don't change (Impressive battery of tests. I had to click 'cancel' for minutes on end at my GH repo of |
|
Turns out I overlooked that the issue at CRAN had already been fixed, see #2343 (comment). So closing this and sorry for the noise. It was the third such fix in 24 hours (after date and toml++ and I had gotten sloppy. |
Yes, I agree. The way this was handled in commit f3b034a is wrong, because it only fixes the symptoms here and does not address the root cause. The proper way to address an issue in any dependency would be to open a PR to fix it in the upstream repository, and that's what I did: nonstd-lite/string-view-lite#61 Now others using string-view lite can benefit from that change/fix, too. |
|
Sure. I 'merely' failed to recurse as |
As discussed in #2343, this aims to avoid a freshly added nag from
clang++-20about deprecated whitespace in operator literal declarations.