Attemtp to fix coroutines on clang

This commit is contained in:
Denis Blank 2018-01-24 01:13:03 +01:00
parent 45cd47806b
commit 810d778b2e
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ install:
(cd llvm/build/projects/libcxxabi && make install -j2)
export STD_CXX_FLAGS="-isystem ${TRAVIS_BUILD_DIR}/llvm/install/include/c++/v1 -stdlib=libc++"
export STD_LINKER_FLAGS="-L ${TRAVIS_BUILD_DIR}/llvm/install/lib -l c++ -l c++abi"
export STD_LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${TRAVIS_BUILD_DIR}/llvm/install/lib"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${TRAVIS_BUILD_DIR}/llvm/install/lib"
fi
# Function for creating a new 'build' directory
- |

View File

@ -83,7 +83,7 @@ public:
void await_suspend(coroutine_handle<> h) {
// Forward every result to the current awaitable
std::move(continuable_)
.next([h, this](auto&&... args) {
.next([h, this](auto&&... args) mutable {
resolve(std::forward<decltype(args)>(args)...);
h.resume();
})