Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jarro2783/cxxopts.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarryd Beck <jarro.2783@gmail.com>2022-08-08 00:07:59 +0300
committerJarryd Beck <jarro.2783@gmail.com>2022-08-08 00:07:59 +0300
commit17b2c91049fe8d74f763d3d5c3bea756f0097f5a (patch)
tree60bebed1a83c3af05782e8275733774f361cbf58
parent96e72f7d1509cd0e33148b7f7fb9cd7ddb5ff047 (diff)
Fix iostream for no exceptions
Fixes #356.
-rw-r--r--include/cxxopts.hpp4
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