mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-09 23:22:10 +00:00
[algorithms][is_valid] in number_of_distinct_values, make size const
This commit is contained in:
@@ -43,7 +43,7 @@ struct number_of_distinct_values
|
||||
{
|
||||
typedef typename boost::range_iterator<Range const>::type iterator;
|
||||
|
||||
std::size_t size = boost::size(range);
|
||||
std::size_t const size = boost::size(range);
|
||||
|
||||
if ( size < 2u )
|
||||
{
|
||||
@@ -72,7 +72,7 @@ struct number_of_distinct_values<Range, N, false, NotEqualTo>
|
||||
{
|
||||
static inline std::size_t apply(Range const& range)
|
||||
{
|
||||
std::size_t size = boost::size(range);
|
||||
std::size_t const size = boost::size(range);
|
||||
return (size < N) ? size : N;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user