[libc++] Properly mark std::function as deprecated in C++03
authorLouis Dionne <ldionne@apple.com>
Mon, 9 Mar 2020 15:16:22 +0000 (11:16 -0400)
committerLouis Dionne <ldionne@apple.com>
Tue, 10 Mar 2020 21:45:39 +0000 (17:45 -0400)
commita13417352ade3bf2ef68cabcde1dc480746644ad
tree0cbcaa726ab21f5f5c8fea992e6a22d51ecc9127
parent5c845c1c50ac89a6f12557d1571678f3d1432478
[libc++] Properly mark std::function as deprecated in C++03

Due to Clang bug http://llvm.org/PR45151, deprecated attributes are not
picked up on partial specializations. This patch instead applies it to
the first declaration of std::function itself.
libcxx/include/__functional_03
libcxx/include/functional
libcxx/test/libcxx/utilities/function.objects/func.wrap/depr_in_cxx03.fail.cpp [new file with mode: 0644]