File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1251,7 +1251,10 @@ private File writeSketchImpl(RunnerListener listener) throws IOException {
12511251 out .append ("using std::move; using std::forward; using std::swap;\n " );
12521252 out .append ("using std::begin; using std::end;\n " );
12531253 out .append ("using std::accumulate; using std::transform; using std::find;\n " );
1254- out .append ("using std::array; using std::span; using std::optional; using std::variant;\n " );
1254+ out .append ("using std::array; using std::optional; using std::variant;\n " );
1255+ out .append ("#if __cplusplus >= 202002L\n " );
1256+ out .append ("using std::span;\n " );
1257+ out .append ("#endif\n " );
12551258 out .append ("using std::function;\n " );
12561259 out .append ("using std::map; using std::set;\n " );
12571260 out .append ("using std::initializer_list; using std::enable_if; using std::enable_if_t;\n " );
You can’t perform that action at this time.
0 commit comments