ondra-novak / libcoro Goto Github PK
View Code? Open in Web Editor NEWsupport for coroutines in C++ 20
License: MIT License
support for coroutines in C++ 20
License: MIT License
Hi,
I found this library on Root.cz and it looks nice. I'm trying to build it on MSVC (v143), but I'm getting some errors, so I can't even compile it. I tried to fix them, but I was not successful. Is there any chance that MSVC will be supported in future? Thanks!
This is part of the build log, it seems to break while compiling coro::function and other errors pops up because of that:
4>...\src\coro\function.h(237,2): error C2764: nx: Parametr šablony se nepoužívá nebo není odvoditelný v částečné specializaci coro::function<RetVal(Args...),reserved_space>.
4>(kompilování zdrojového souboru ../../../src/tests/shared_future.cpp)
4>...\src\coro\future.h(590,25): error C2064: Termín se nevyhodnocuje na funkci s 0 argumenty.
4>(kompilování zdrojového souboru ../../../src/tests/shared_future.cpp)
4>...\src\coro\future.h(590,25):
4>_awaiter: Deklarace funkce musí být k dispozici, protože žádný z argumentů nezávisí na parametru šablony.
4>...\src\coro\future.h(583,10):
4>K této diagnostice došlo ve funkci generované kompilátorem: bool coro::future<T>::then(Fn &&).
4>...\src\coro\future.h(590,25):
4>kontext vytváření instancí šablony (první nejstarší) je
4> ...\src\coro\future.h(387,21):
4> při kompilaci šablony třídy coro::future
4>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.39.33519\include\xsmf_control.h(152,19): error C2139: coro::function<coro::prepared_coro (void),32>: Nedefinovaná třída není povolená jako argument vlastnosti kompilátoru vnitřního typu __is_trivially_destructible.
4>(kompilování zdrojového souboru ../../../src/tests/shared_future.cpp)
4>...\src\coro\function.h(23,7):
4>viz deklarace: coro::function<coro::prepared_coro (void),32>
4>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.39.33519\include\xsmf_control.h(152,19):
4>kontext vytváření instancí šablony (první nejstarší) je
4> ...\src\coro\future.h(1153,7):
4> při kompilaci šablony třídy coro::shared_future
4> ...\src\coro\future.h(1509,31):
4> Zobrazit odkaz na kompilované vytváření instancí funkce třída šablona std::optional<coro::shared_future<T>::awaiter_cb>
4> C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.39.33519\include\optional(213,26):
4> Zobrazit odkaz na kompilované vytváření instancí funkce alias šablona std::_SMF_control<std::_Optional_construct_base<_Ty>,_Ty>
4> with
4> [
4> _Ty=coro::shared_future<T>::awaiter_cb
4> ]
4> C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.39.33519\include\xsmf_control.h(159,22):
4> Zobrazit odkaz na kompilované vytváření instancí funkce alias šablona std::_SMF_control_move_assign<std::_Optional_construct_base<_Ty>,_Ty>
4> with
4> [
4> _Ty=coro::shared_future<T>::awaiter_cb
4> ]
4> C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.39.33519\include\xsmf_control.h(152,19):
4> Podívejte se na kompilaci reference na variabilní šablonu const bool conjunction_v<std::is_trivially_destructible<coro::function<coro::prepared_coro __cdecl(void),32> >,std::is_trivially_move_constructible<coro::function<coro::prepared_coro __cdecl(void),32> >,std::is_trivially_move_assignable<coro::function<coro::prepared_coro __cdecl(void),32> > >.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.