From 53a420fba21cf1644972b34dcd811a43cdb8368d Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 2 Jan 2017 19:18:58 +0000 Subject: Vendor import of libc++ trunk r290819: https://llvm.org/svn/llvm-project/libcxx/trunk@290819 --- test/std/strings/basic.string/string.cons/iter_alloc.pass.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/std/strings/basic.string/string.cons/iter_alloc.pass.cpp') diff --git a/test/std/strings/basic.string/string.cons/iter_alloc.pass.cpp b/test/std/strings/basic.string/string.cons/iter_alloc.pass.cpp index cb0792ab23b3..1b10224cd9e7 100644 --- a/test/std/strings/basic.string/string.cons/iter_alloc.pass.cpp +++ b/test/std/strings/basic.string/string.cons/iter_alloc.pass.cpp @@ -16,6 +16,7 @@ #include #include #include +#include #include "test_macros.h" #include "test_allocator.h" @@ -32,7 +33,7 @@ test(It first, It last) typedef typename S::allocator_type A; S s2(first, last); LIBCPP_ASSERT(s2.__invariants()); - assert(s2.size() == std::distance(first, last)); + assert(s2.size() == static_cast(std::distance(first, last))); unsigned i = 0; for (It it = first; it != last; ++it, ++i) assert(s2[i] == *it); @@ -49,7 +50,7 @@ test(It first, It last, const A& a) typedef typename S::traits_type T; S s2(first, last, a); LIBCPP_ASSERT(s2.__invariants()); - assert(s2.size() == std::distance(first, last)); + assert(s2.size() == static_cast(std::distance(first, last))); unsigned i = 0; for (It it = first; it != last; ++it, ++i) assert(s2[i] == *it); -- cgit v1.2.3