Cleanup _LIBCPP_HAS_NO_<c++11-feature> in the utilities library

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@300635 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2017-04-19 00:56:32 +00:00
parent 3e92897754
commit d311b3c55a
29 changed files with 69 additions and 35 deletions

View File

@@ -22,11 +22,11 @@ int main()
static_assert(_5::value == 5, "");
static_assert((std::is_same<_5::value_type, int>::value), "");
static_assert((std::is_same<_5::type, _5>::value), "");
#ifndef _LIBCPP_HAS_NO_CONSTEXPR
#if TEST_STD_VER >= 11
static_assert((_5() == 5), "");
#else
assert(_5() == 5);
#endif
assert(_5() == 5);
#if TEST_STD_VER > 11
static_assert ( _5{}() == 5, "" );