sewenew / redis-plus-plus

Redis client written in C++
Apache License 2.0
1.64k stars 351 forks source link

Check whether co-routine or experimental co-routine should be included #484

Closed pbronneberg closed 1 year ago

pbronneberg commented 1 year ago

Given the experimental status of coroutines in C++20, different compilers have distinct locations for the coroutines headers. Due to this, e.g. when using clang an #include <experimental/coroutine> is required instead of the normal coroutine include.

The code below is tested on clang versions 11 & 13 inside a debian based buildcontainer.