Skip to content

Commit 1ae5cd6

Browse files
pemensikjaredgrubb
authored andcommitted
Include definition for std::runtime_error
Build fails with GCC 10.0. Make sure runtime_error definition is included in headers that contain construction of std::runtime_error.
1 parent a3e66b9 commit 1ae5cd6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docopt.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <map>
1515
#include <vector>
1616
#include <string>
17+
#include <stdexcept>
1718

1819
#ifdef DOCOPT_HEADER_ONLY
1920
#define DOCOPT_INLINE inline

docopt_value.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <vector>
1515
#include <functional> // std::hash
1616
#include <iosfwd>
17+
#include <stdexcept>
1718

1819
namespace docopt {
1920

0 commit comments

Comments
 (0)