|
@@ -14,6 +14,7 @@
|
|
|
#include <forward_list>
|
|
|
#include <iterator>
|
|
|
#include <cassert>
|
|
|
+#include <cstddef>
|
|
|
|
|
|
#include "min_allocator.h"
|
|
|
#include "counting_predicates.hpp"
|
|
@@ -37,7 +38,7 @@ int main()
|
|
|
Predicate cp(g);
|
|
|
c1.remove_if(std::ref(cp));
|
|
|
assert(c1 == c2);
|
|
|
- assert(cp.count() == std::distance(std::begin(t1), std::end(t1)));
|
|
|
+ assert(cp.count() == static_cast<std::size_t>(std::distance(std::begin(t1), std::end(t1))));
|
|
|
}
|
|
|
{
|
|
|
typedef int T;
|
|
@@ -49,7 +50,7 @@ int main()
|
|
|
Predicate cp(g);
|
|
|
c1.remove_if(std::ref(cp));
|
|
|
assert(c1 == c2);
|
|
|
- assert(cp.count() == std::distance(std::begin(t1), std::end(t1)));
|
|
|
+ assert(cp.count() == static_cast<std::size_t>(std::distance(std::begin(t1), std::end(t1))));
|
|
|
}
|
|
|
{
|
|
|
typedef int T;
|
|
@@ -62,7 +63,7 @@ int main()
|
|
|
Predicate cp(g);
|
|
|
c1.remove_if(std::ref(cp));
|
|
|
assert(c1 == c2);
|
|
|
- assert(cp.count() == std::distance(std::begin(t1), std::end(t1)));
|
|
|
+ assert(cp.count() == static_cast<std::size_t>(std::distance(std::begin(t1), std::end(t1))));
|
|
|
}
|
|
|
{
|
|
|
typedef int T;
|
|
@@ -86,7 +87,7 @@ int main()
|
|
|
Predicate cp(g);
|
|
|
c1.remove_if(std::ref(cp));
|
|
|
assert(c1 == c2);
|
|
|
- assert(cp.count() == std::distance(std::begin(t1), std::end(t1)));
|
|
|
+ assert(cp.count() == static_cast<std::size_t>(std::distance(std::begin(t1), std::end(t1))));
|
|
|
}
|
|
|
#if TEST_STD_VER >= 11
|
|
|
{
|
|
@@ -100,7 +101,7 @@ int main()
|
|
|
Predicate cp(g);
|
|
|
c1.remove_if(std::ref(cp));
|
|
|
assert(c1 == c2);
|
|
|
- assert(cp.count() == std::distance(std::begin(t1), std::end(t1)));
|
|
|
+ assert(cp.count() == static_cast<std::size_t>(std::distance(std::begin(t1), std::end(t1))));
|
|
|
}
|
|
|
{
|
|
|
typedef int T;
|
|
@@ -112,7 +113,7 @@ int main()
|
|
|
Predicate cp(g);
|
|
|
c1.remove_if(std::ref(cp));
|
|
|
assert(c1 == c2);
|
|
|
- assert(cp.count() == std::distance(std::begin(t1), std::end(t1)));
|
|
|
+ assert(cp.count() == static_cast<std::size_t>(std::distance(std::begin(t1), std::end(t1))));
|
|
|
}
|
|
|
{
|
|
|
typedef int T;
|
|
@@ -125,7 +126,7 @@ int main()
|
|
|
Predicate cp(g);
|
|
|
c1.remove_if(std::ref(cp));
|
|
|
assert(c1 == c2);
|
|
|
- assert(cp.count() == std::distance(std::begin(t1), std::end(t1)));
|
|
|
+ assert(cp.count() == static_cast<std::size_t>(std::distance(std::begin(t1), std::end(t1))));
|
|
|
}
|
|
|
{
|
|
|
typedef int T;
|
|
@@ -149,7 +150,7 @@ int main()
|
|
|
Predicate cp(g);
|
|
|
c1.remove_if(std::ref(cp));
|
|
|
assert(c1 == c2);
|
|
|
- assert(cp.count() == std::distance(std::begin(t1), std::end(t1)));
|
|
|
+ assert(cp.count() == static_cast<std::size_t>(std::distance(std::begin(t1), std::end(t1))));
|
|
|
}
|
|
|
#endif
|
|
|
}
|