#1877: TimerReport change requires C++11, but Cactus does not ---------------------+------------------------------------------------------ Reporter: hinder | Owner: Type: defect | Status: confirmed Priority: major | Milestone: Component: Cactus | Version: development version Resolution: | Keywords: ---------------------+------------------------------------------------------
Comment (by eschnett):
The systems I tested (Edison, Queen Bee, Comet, Core, Bethe, and a few others) all compiled the code fine. I've been using C++11 features in Carpet for some time, usually enabled by the {{{-std=c++0x}}} flag. This seemed to work well for both the Intel and GNU compilers.
If this flag works here as well, then I'd be tempted to make this the default. If not, I'll implement the respective work-arounds. To my knowledge, this requires (1) creating structs instead of using lambda expressions in two places, and (2) replacing std::array by a struct holding an old-style array. Both look straightforward.