Skip to content

"Spring cleaning" of some ancient pre-processor directives #1363

Closed
@eddelbuettel

Description

@eddelbuettel

Include file inst/include/Rcpp/platform/compiler.h contains a number of ancient tests ("is gcc newer than 4.5 ?") that we should be able to simplify. One approach may be to open a branch and to chip away carefully, building on last year's variadic templates cleanup. I suspect we can get rid of most if not even all these 'else' branches as current Rcpp versions are very unlikely to encounter a compiler than does not have a minimal C++11 fallback.

For example, RCPP_USING_CXX0X_OR_LATER is defined there, but used only in one file (inst/include/Rcpp/sugar/functions/sapply.h) where it provides a fallback for typedef typename via local pre-C++11 implementation. That else case can likely be removed. By going carefully we may be able to get some simplifications in.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions