Skip to content

Commit bcf0c6e

Browse files
#include <optional> if C++ version >= 17
1 parent 5c6e236 commit bcf0c6e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clingwrapper/src/clingwrapper.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ class ApplicationStarter {
250250
"#include <set>\n" // FIXME: Replace with modules
251251
"#include <chrono>\n" // FIXME: Replace with modules
252252
"#include <cmath>\n" // FIXME: Replace with modules
253+
"#if 201703 <= __cplusplus\n#include <optional>\n#endif\n"
253254
"#include \"clang/Interpreter/CppInterOp.h\"";
254255
Cpp::Process(code);
255256

0 commit comments

Comments
 (0)