Commit cf24695c authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Alias std::apply for libc++ if c++17

Summary:
[Folly] Alias `std::apply` for libc++ if c++17, and for msvc.

Fixes #987.

Reviewed By: gkmhub

Differential Revision: D13562821

fbshipit-source-id: b1fef92eed24ce201e50dda72d1ee8b6db9ed6dd
parent 70502069
...@@ -76,7 +76,13 @@ struct ApplyInvoke : private detail::apply_tuple::adl::ApplyInvoke { ...@@ -76,7 +76,13 @@ struct ApplyInvoke : private detail::apply_tuple::adl::ApplyInvoke {
////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////
#if __cpp_lib_apply >= 201603 // libc++ v3.9 has std::apply
// android ndk r15c libc++ claims to be v3.9 but is missing std::apply
#if __cpp_lib_apply >= 201603 || \
(((__ANDROID__ && _LIBCPP_VERSION > 3900) || \
(!__ANDROID__ && _LIBCPP_VERSION > 3800)) && \
_LIBCPP_STD_VER > 14) || \
(_MSC_VER && _HAS_CXX17)
/* using override */ using std::apply; /* using override */ using std::apply;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment