Don't enable FOLLY_HAS_COROUTINES under MSVC or pre-C++17
Summary: The folly::coro functionality depends heavily on the symmetric-transfer capability of coroutines which MSVC does not yet support. The folly/Portability.h header was previously defining FOLLY_HAS_COROUTINES to true for MSVC even though you would get compile errors if you tried to use any of the folly::coro facilities. Also further restrict defining FOLLY_HAS_COROUTINES only when C++17 or later is available as folly::coro makes use of C++17 language features. Reviewed By: yfeldblum, andriigrynenko Differential Revision: D14811921 fbshipit-source-id: f3da2d3c07fc9ebe08f566a7707c62e74e412df9
Showing
Please register or sign in to comment