From 17b2c91049fe8d74f763d3d5c3bea756f0097f5a Mon Sep 17 00:00:00 2001 From: Jarryd Beck Date: Mon, 8 Aug 2022 07:07:59 +1000 Subject: [PATCH] Fix iostream for no exceptions Fixes #356. --- include/cxxopts.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index 70d20cc..d9ecca8 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -43,6 +43,10 @@ THE SOFTWARE. #include #include +#ifdef CXXOPTS_NO_EXCEPTIONS +#include +#endif + #if defined(__GNUC__) && !defined(__clang__) # if (__GNUC__ * 10 + __GNUC_MINOR__) < 49 # define CXXOPTS_NO_REGEX true