Missing include in FAlgorithmTimers.cpp
Compiling on Debian 11 (Bullseye) gives the following error:
In file included from [...]/src/FAlgorithmTimers.cpp:1:
[...]/include/Utils/FAlgorithmTimers.hpp: In member function ‘double FAlgorithmTimers::getTime(std::string) const’:
[...]/include/Utils/FAlgorithmTimers.hpp:49:22: error: ‘out_of_range’ in namespace ‘std’ does not name a type
49 | } catch(std::out_of_range&) {
| ^~~~~~~~~~~~
Solution
Near the top of include/Utils/FAlgorithmTimers.hpp, add
#include <stdexcept>
Affected versions
At least the following branches are affected:
- master
- develop
- maintenance/scalfmm-1.5
- maintenance/scalfmm-2.0
The branch “experimental” is not affected, as the issue has been fixed in commit 49a2145a.