llvm-project/libcxx
Eric Fiselier 94d555116c Fix PR34298 - Allow std::function with an incomplete return type.
This patch fixes llvm.org/PR34298. Previously libc++ incorrectly evaluated
the __invokable trait via the converting constructor `function(Tp)` [with Tp = std::function]
whenever the copy constructor or copy assignment operator
was required. This patch further constrains that constructor to short
circut before evaluating the troublesome SFINAE when `Tp` matches
std::function.

The original patch is from Alex Lorenz.

llvm-svn: 312892
2017-09-10 23:41:20 +00:00
..
benchmarks [locale] Avoid copy of __atoms when char_type is char 2017-06-14 23:17:45 +00:00
cmake [libcxx][CMake] Add install path variable to allow overriding the destination 2017-07-11 02:39:50 +00:00
docs Bump docs version to 6.0 2017-07-19 13:46:11 +00:00
include Fix PR34298 - Allow std::function with an incomplete return type. 2017-09-10 23:41:20 +00:00
lib Add MINGW_LIBRARIES to the linker flags 2017-09-04 19:46:53 +00:00
src [libc++] Don't hardcode namespace in manual mangling 2017-08-07 19:59:58 +00:00
test Fix PR34298 - Allow std::function with an incomplete return type. 2017-09-10 23:41:20 +00:00
utils XFAIL tests on SLES11 2017-09-08 03:57:02 +00:00
www [libcxx] [www] Change an absolute link to cxx1z_status.html to be relative. 2017-08-31 17:59:51 +00:00
.arcconfig Upgrade arcconfig to use https 2016-07-18 02:02:49 +00:00
.clang-format Make clang-format use C++03 syntax 2017-04-15 02:45:43 +00:00
.gitignore Implement N4606 optional 2016-10-12 07:46:20 +00:00
CMakeLists.txt Update _LIBCPP_VERSION and the version in CMakeLists to 6.0 2017-07-19 13:57:10 +00:00
CREDITS.TXT Updated email address in `CREDITS.txt`. 2017-03-06 20:46:55 +00:00
LICENSE.TXT Update year to 2017 2017-01-03 11:20:43 +00:00
NOTES.TXT Update doc and various cleanup 2016-12-23 20:00:13 +00:00
TODO.TXT Add list of filesystem NB comments to TODO.TXT so they can be tracked separately 2017-03-06 21:23:36 +00:00
appveyor-reqs-install.cmd Upgrade Clang version used by appveyor 2017-06-01 01:00:59 +00:00
appveyor.yml Rename Appveyor install helper script. 2017-05-10 02:43:02 +00:00