Commit 17b2c91049fe8d74f763d3d5c3bea756f0097f5a
1 parent
96e72f7d
Fix iostream for no exceptions
Fixes #356.
Showing
1 changed file
with
4 additions
and
0 deletions
include/cxxopts.hpp
| ... | ... | @@ -43,6 +43,10 @@ THE SOFTWARE. |
| 43 | 43 | #include <vector> |
| 44 | 44 | #include <algorithm> |
| 45 | 45 | |
| 46 | +#ifdef CXXOPTS_NO_EXCEPTIONS | |
| 47 | +#include <iostream> | |
| 48 | +#endif | |
| 49 | + | |
| 46 | 50 | #if defined(__GNUC__) && !defined(__clang__) |
| 47 | 51 | # if (__GNUC__ * 10 + __GNUC_MINOR__) < 49 |
| 48 | 52 | # define CXXOPTS_NO_REGEX true | ... | ... |