Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Header cleanup with C++11 as a baseline#1364

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
eddelbuettel merged 11 commits intomasterfromfeature/header_cleanup
Mar 18, 2025
Merged
Changes from1 commit
Commits
Show all changes
11 commits
Select commitHold shift + click to select a range
1d9a549
First step of simplifying compiler checks
eddelbuettelMar 14, 2025
f195660
Do not rely on __has_feature() for g++
eddelbuettelMar 14, 2025
2665b4d
Expand macos matrix to macos-13, simplify via r-ci with bootstrap
eddelbuettelMar 14, 2025
39f3c42
No longer provide fallback for unordered_{set,map} which are given
eddelbuettelMar 14, 2025
d2c859a
Further cleanup
eddelbuettelMar 14, 2025
d4870af
Reduced compiler.h to about a page of mostly defines and includes
eddelbuettelMar 14, 2025
714c483
Additional simplification, and typo fix
eddelbuettelMar 14, 2025
8809c39
Remove HAS_STATIC_ASSERT define and simplify at its sole use
eddelbuettelMar 14, 2025
e1150dc
Reflect code review comments
eddelbuettelMar 14, 2025
12c29ee
Following rebase roll micro release and date, update ChangeLog
eddelbuettelMar 16, 2025
fa5d1f1
Remove remaining stray HAS_CXX0X_INITIALIZER_LIST
eddelbuettelMar 16, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Do not rely on __has_feature() for g++
Given that we test for C++11 we can assume variadic templates and justuse the #define. Can likely be generalized to icc and clang too.
  • Loading branch information
@eddelbuettel
eddelbuettel committedMar 16, 2025
commitf1956608d4296991f21ce8910f5c4d8a5afc3fa3
9 changes: 3 additions & 6 deletionsinst/include/Rcpp/platform/compiler.h
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -70,13 +70,10 @@
#define HAS_STATIC_ASSERT
#endif
#elif defined(__GNUC__)
// given the check about __cplusplus we can unconditionally define
#define RCPP_USING_CXX11
#if __has_feature(cxx_variadic_templates)
#define HAS_VARIADIC_TEMPLATES
#endif
#if __has_feature(cxx_static_assert)
#define HAS_STATIC_ASSERT
#endif
#define HAS_VARIADIC_TEMPLATES
#define HAS_STATIC_ASSERT
#endif

// Check C++0x headers (TODO remove when no longer needed below)
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp