epiverse-trace / epidemics

A library of published compartmental epidemic models, and classes to represent demographic structure, non-pharmaceutical interventions, and vaccination regimes, to compose epidemic scenarios.
https://epiverse-trace.github.io/epidemics/
Other
8 stars 2 forks source link

Fixes for Clang >15 #129

Closed pratikunterwegs closed 11 months ago

pratikunterwegs commented 11 months ago

This PR is WIP on #115 and #119. The fix is currently targeted at UNIX systems but can be ported to Windows systems should it become necessary to do so.

The fix references this issue regarding Clang compatibility for {BH}, as well as the Xcode 15 release notes suggesting that the compiler flag _LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION should be added (to Makevars) as a potential fix.

pratikunterwegs commented 11 months ago

@jamesmbaazam this might fix the issue you've been having - would be great if you take a look at whether this works for you aftering upgrading R to. 4.3.x as well.

jamesmbaazam commented 11 months ago

Yes, upgrading to 4.3.1 and running devtools::load_all() for this branch works but fails for main.

pratikunterwegs commented 11 months ago

Thanks - I'll just call @TimTaylor and @BlackEdder's attention to this as well to see if there's any feedback on this fix.