Skip to content

Commit 160c9c9

Browse files
committed
hopefully it compiles now
1 parent 61701a2 commit 160c9c9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/executiontest.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#include <execution>
2+
#include <vector>
23
int main() {
3-
std::execution::par
4+
std::vector<int> v = { 1, 2, 3 };
5+
int sum = 0;
6+
std::for_each(std::execution::seq, std::begin(v), std::end(v), [&](int i) {
7+
sum += i*i;
8+
});
49
}
510

0 commit comments

Comments
 (0)