diff options
Diffstat (limited to 'test/std/re/re.results/re.results.acc/begin_end.pass.cpp')
-rw-r--r-- | test/std/re/re.results/re.results.acc/begin_end.pass.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/std/re/re.results/re.results.acc/begin_end.pass.cpp b/test/std/re/re.results/re.results.acc/begin_end.pass.cpp index a5ed051265cc..85b5134266dc 100644 --- a/test/std/re/re.results/re.results.acc/begin_end.pass.cpp +++ b/test/std/re/re.results/re.results.acc/begin_end.pass.cpp @@ -16,6 +16,7 @@ #include <regex> #include <cassert> +#include <cstddef> #include "test_macros.h" void @@ -28,7 +29,7 @@ test() std::match_results<const char*>::const_iterator i = m.begin(); std::match_results<const char*>::const_iterator e = m.end(); - assert(e - i == m.size()); + assert(static_cast<std::size_t>(e - i) == m.size()); for (int j = 0; i != e; ++i, ++j) assert(*i == m[j]); } |