Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New CRAN warning: identifier preceded by whitespace in a literal operator declaration #447

Closed
andrjohns opened this issue Feb 22, 2025 · 0 comments · Fixed by #448
Closed

Comments

@andrjohns
Copy link
Contributor

Hi All,

CRAN has started flagging a new significant warning in the cpp11 headers:

Found the following significant warnings:
  ../inst/include/cpp11/R.hpp:54:31: warning: identifier '_xl' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
  ../inst/include/cpp11/named_arg.hpp:44:29: warning: identifier '_nm' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]

Here's the relevant checking and install log

The fix is simple enough (changing the declaration from operator"" _xl to operator""_xl), but just flagging here for awareness

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant