forked from boostorg/utility
Replaced some static_casts with explicit construction
[SVN r9107]
This commit is contained in:
@@ -155,8 +155,8 @@ void test_container(Container* = 0) // default arg works around MSVC bug
|
|||||||
|
|
||||||
test(start, finish);
|
test(start, finish);
|
||||||
|
|
||||||
test(static_cast<typename Container::const_iterator>(start),
|
typedef typename Container::const_iterator const_iterator;
|
||||||
static_cast<typename Container::const_iterator>(finish));
|
test(const_iterator(start), const_iterator(finish));
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
@@ -176,7 +176,7 @@ int main()
|
|||||||
test_integer<long long>();
|
test_integer<long long>();
|
||||||
test_integer<unsigned long long>();
|
test_integer<unsigned long long>();
|
||||||
#endif
|
#endif
|
||||||
// Some tests on container iterators, to prove we handle a few different categories
|
// Some tests on container iterators, to prove we handle a few different categories
|
||||||
test_container<std::vector<int> >();
|
test_container<std::vector<int> >();
|
||||||
test_container<std::list<int> >();
|
test_container<std::list<int> >();
|
||||||
#ifndef BOOST_NO_SLIST
|
#ifndef BOOST_NO_SLIST
|
||||||
|
Reference in New Issue
Block a user