File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11// examples/intro-1-hello-world.cpp -*-C++-*-
22// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
33
4- #ifndef __clang__
54#include < beman/execution/execution.hpp>
65#include < beman/execution/detail/suppress_push.hpp>
76#include < expected>
109#include < tuple>
1110#include < cinttypes>
1211
12+ #if __cpp_lib_expected < 202202L
13+ int main () {
14+ std::cout << " this example needs a working std::expected\n " ;
15+ }
16+ #else
1317namespace ex = ::beman::execution;
1418using namespace std ::string_literals;
1519
@@ -93,7 +97,4 @@ int main() {
9397 ex::then ([](success) noexcept { std::cout << " success\n " ; }) |
9498 ex::upon_error ([](failure) noexcept { std::cout << " fail\n " ; }));
9599}
96- #else
97- int main () {
98- }
99100#endif
You can’t perform that action at this time.
0 commit comments