Skip to content

Commit 1c81f3a

Browse files
authored
Include header for std::invalid_argument
As documented at https://gcc.gnu.org/gcc-10/porting_to.html#cxx the C++ headers in GCC 10 no longer include `<stdexcept>` in places that don't need it. This causes leatherman to fail to compile because it uses `std::invalid_argument` without including the right header.
1 parent 552fef0 commit 1c81f3a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

util/src/environment.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include <leatherman/util/environment.hpp>
22
#include <boost/nowide/cenv.hpp>
3+
#include <stdexcept>
34

45
using namespace std;
56

0 commit comments

Comments
 (0)