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

@@ -16,6 +16,7 @@
#include <chrono>
#include <cassert>
#include "test_macros.h"
#include "../../rep.h"
template <class D>
@@ -26,7 +27,7 @@ void test()
Rep zero_rep = std::chrono::duration_values<Rep>::zero();
assert(D::zero().count() == zero_rep);
}
#ifndef _LIBCPP_HAS_NO_CONSTEXPR
#if TEST_STD_VER >= 11
{
typedef typename D::rep Rep;
constexpr Rep zero_rep = std::chrono::duration_values<Rep>::zero();