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

Variadic templates refinement #1336

Merged
merged 4 commits into from
Oct 7, 2024
Merged

Variadic templates refinement #1336

merged 4 commits into from
Oct 7, 2024

Conversation

Enchufa2
Copy link
Member

@Enchufa2 Enchufa2 commented Oct 7, 2024

Closes #1328, #1329. Refining #1303.

  • An is_void method was missing in @andrjohns great work. Adding it fixes the issue.
  • New tests were added.
  • The definition of HAS_VARIADIC_TEMPLATES is uncommented now, and all the ifdefs have been simplified accordingly.

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
Contributor

@kevinushey kevinushey left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -112,6 +112,7 @@ namespace Rcpp {
}

inline int nargs() { return sizeof...(T); }
inline bool is_void() { return std::is_void<RESULT_TYPE>::value; }
Copy link
Member

Choose a reason for hiding this comment

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

Great catch!

@eddelbuettel
Copy link
Member

(When you merge please select 'Squash and Merge' -- thanks!)

@Enchufa2 Enchufa2 merged commit c91eb89 into master Oct 7, 2024
18 checks passed
@Enchufa2 Enchufa2 deleted the module-regression branch October 7, 2024 20:26
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.

Did something change with void return of Modules functions?
3 participants