MacPorts MathGL maintainer here.

This morning, I noticed that MathGL v2.5 supports some Armadillo functionallity. However when building under macOS Big Sur I get

In file included from /opt/local/include/armadillo:87:
/opt/local/include/armadillo_bits/arma_forward.hpp:152:12: error: unknown type name 'constexpr'
static constexpr bool is_row = false;
...

with the suggestion

/opt/local/include/armadillo_bits/compiler_check.hpp:72:4: error: " C++11 compiler required; enable C++11 mode in your compiler, or use an earlier version of Armadillo" #error " C++11 compiler required; enable C++11 mode in your compiler, or use an earlier version of Armadillo"

when I set

compiler.cxx_standard 2011

(which globally sets -std=c++11) the problem does not go away.