mirror of https://github.com/CGAL/cgal
Fix iterator range size type
This commit is contained in:
parent
a7cffb4238
commit
025c4e9db1
|
|
@ -62,10 +62,10 @@ namespace CGAL {
|
|||
}
|
||||
|
||||
/// returns `std::distance(begin(), end())`
|
||||
typename std::iterator_traits<I>::difference_type
|
||||
std::size_t
|
||||
size() const
|
||||
{
|
||||
return std::distance(begin(), end());
|
||||
return static_cast<std::size_t>(std::distance(begin(), end()));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -65,10 +65,10 @@ namespace CGAL {
|
|||
}
|
||||
|
||||
/// returns `std::distance(begin(), end())`
|
||||
typename std::iterator_traits<I>::difference_type
|
||||
std::size_t
|
||||
size() const
|
||||
{
|
||||
return std::distance(begin(), end());
|
||||
return static_cast<std::size_t>(std::distance(begin(), end()));
|
||||
}
|
||||
|
||||
/// returns `std::distance(begin(), end())==0`
|
||||
|
|
|
|||
Loading…
Reference in New Issue