Skip to content

Commit 6cd55b2

Browse files
committed
work around std::expected missing
1 parent a6b4db8 commit 6cd55b2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/intro-5-consumer.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// examples/intro-1-hello-world.cpp -*-C++-*-
22
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
33

4+
#ifndef __clang__
45
#include <beman/execution/execution.hpp>
56
#include <beman/execution/detail/suppress_push.hpp>
67
#include <expected>
@@ -92,3 +93,7 @@ int main() {
9293
ex::then([](success) noexcept { std::cout << "success\n"; }) |
9394
ex::upon_error([](failure) noexcept { std::cout << "fail\n"; }));
9495
}
96+
#else
97+
int main() {
98+
}
99+
#endif

0 commit comments

Comments
 (0)