|
23 | 23 |
|
24 | 24 |
|
25 | 25 | // Purpose: By explicitly defining or undefining a variable the 'defined(...) that |
26 | | -// is in RcppArmadilloForward.h works as expected |
27 | | - |
| 26 | +// is in RcppArmadilloForward.h works as expected allowing us to selectively include |
| 27 | +// either a 'legacy' Armadillo (i.e. 14.6.3. the last version to a) allow C++11 and |
| 28 | +// b) permit suppression of deprecation warnings) or a 'current' Armadillo (i.e. as |
| 29 | +// of this writing 15.0.1, or any later version) |
| 30 | +// |
| 31 | +// See https://github.com/RcppCore/RcppArmadillo/issues/475 for more details |
28 | 32 |
|
29 | 33 | // Sanity check: Cannot select both current and legacy but only one |
30 | 34 | #if defined(ARMA_USE_CURRENT) && defined(ARMA_USE_LEGACY) |
|
59 | 63 | // Show messages, adjusted for compilation standard (as we also want to move on from C++11) |
60 | 64 | // We plan to 'at some point' flip to for C++14 |
61 | 65 | #if __cplusplus < 201402L |
62 | | - #pragma message("Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT and also removing C++11 compilation directive") |
| 66 | + #pragma message("Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT and also removing C++11 compilation directive. See GitHub issue #475 for more.") |
63 | 67 | // Define selector used in RcppArmadilloForward.h |
64 | 68 | #define ARMA_SELECTED_LEGACY_VERSION |
65 | 69 | #undef ARMA_SELECTED_CURRENT_VERSION |
66 | 70 | #else |
67 | | - #pragma message("Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT") |
| 71 | + #pragma message("Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT. See GitHub issue #475 for more.") |
68 | 72 | // Define selector used in RcppArmadilloForward.h |
69 | 73 | // It is our intention to select current here after transition instead of legacy |
70 | 74 | #define ARMA_SELECTED_LEGACY_VERSION |
|
0 commit comments