diff options
author | Jarryd Beck <jarro.2783@gmail.com> | 2022-08-08 00:07:59 +0300 |
---|---|---|
committer | Jarryd Beck <jarro.2783@gmail.com> | 2022-08-08 00:07:59 +0300 |
commit | 17b2c91049fe8d74f763d3d5c3bea756f0097f5a (patch) | |
tree | 60bebed1a83c3af05782e8275733774f361cbf58 | |
parent | 96e72f7d1509cd0e33148b7f7fb9cd7ddb5ff047 (diff) |
Fix iostream for no exceptions
Fixes #356.
-rw-r--r-- | include/cxxopts.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 <vector> #include <algorithm> +#ifdef CXXOPTS_NO_EXCEPTIONS +#include <iostream> +#endif + #if defined(__GNUC__) && !defined(__clang__) # if (__GNUC__ * 10 + __GNUC_MINOR__) < 49 # define CXXOPTS_NO_REGEX true |