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

Cleanup __cplusplus checks #1371

Merged
merged 3 commits into from
Mar 26, 2025
Merged

Cleanup __cplusplus checks #1371

merged 3 commits into from
Mar 26, 2025

Conversation

Enchufa2
Copy link
Member

Closes #1370.

Checklist

  • Code compiles correctly
  • R CMD check still passes all tests
  • Preferably, new tests were added which fail without the change
  • Document the changes by file in ChangeLog

Copy link
Member

@eddelbuettel eddelbuettel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work. I had eyed this as upcoming (ie file cleanup / removal) for exceptions_ but not worked it out in any detail and not realized that we can e.g. simplify the LONG_LONG bit. The exceptions bit is also good. I had not realized the RCPP_ADVANCED_EXCEPTION_CLASS by @coatless was not actually use in the C++11 header he defined 😉

I will give all this a drive on the reverse-depends machine, ok? (Where I am slowly adding more to the blacklist to skip the very worst offenders.)

@Enchufa2
Copy link
Member Author

About the Copyright line, I didn't add myself where I just removed code. :)

@coatless
Copy link
Contributor

It's been a hot minute (~8 years) since I last looked at that; but, wasn't the macro used later on?

RCPP_ADVANCED_EXCEPTION_CLASS(not_compatible, "Not compatible" ) // #nocov end
RCPP_ADVANCED_EXCEPTION_CLASS(index_out_of_bounds, "Index is out of bounds")

@eddelbuettel
Copy link
Member

eddelbuettel commented Mar 24, 2025

Yes: @Enchufa2 moved it up a level into the exceptions file itself. What got removed what the C++98-vs-C++11 split and we continue with the latter as a default. See eaa119a for his commit, and #1365 as our governing issue with sub-issues (!!).

So I think my hot comment this morning was also partly off. The better news is that even on the sloooow machine used, the reverse depends trains is now at 336 winners, a few skipped and one unrelated fail for lack of (new) build-depends. Moving along...

eddelbuettel added a commit to RcppCore/rcpp-logs that referenced this pull request Mar 26, 2025
@eddelbuettel
Copy link
Member

All clear from the rev.dep check, as everybody rightly expected. So merging. Thanks for this nice pice of work @Enchufa2 !

@eddelbuettel eddelbuettel merged commit 50f334a into master Mar 26, 2025
20 checks passed
eddelbuettel added a commit that referenced this pull request Mar 26, 2025
Following #1371 which used it as its tag
@Enchufa2 Enchufa2 deleted the feature/cplusplus_cleanup branch March 26, 2025 19:22
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 this pull request may close these issues.

Cleanup __cplusplus checks based on C++11 availability
3 participants