Skip to content

Enhance Rcpp::Nullable::as with explicit cast (Closes #1470)#1471

Open
eddelbuettel wants to merge 1 commit intomasterfrom
enhance/nullable
Open

Enhance Rcpp::Nullable::as with explicit cast (Closes #1470)#1471
eddelbuettel wants to merge 1 commit intomasterfrom
enhance/nullable

Conversation

@eddelbuettel
Copy link
Copy Markdown
Member

As discussed in #1470 and building on this morning's discussion at the bottom of #1451, we can make Nullable<T> a little nicer. And that is all this PR does: for cases where the implicit as<>() needs a nudge, we can hide the nudge inside that (member function) as() function body accessing the matching as<> for the given T. A little bit of ellbow grease.

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

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.

1 participant