Merge pull request #6080 from sloriot/PMP-max_w

Workaround compilation error on Windows, about `max`
This commit is contained in:
Laurent Rineau 2021-10-29 16:59:22 +02:00
commit 04cde86a24
1 changed files with 4 additions and 4 deletions

View File

@ -63,14 +63,14 @@ template<typename Output_iterator>
struct Throw_at_count_reached_functor {
std::atomic<unsigned int>& counter;
const unsigned int& max;
const unsigned int& maxval;
Output_iterator out;
Throw_at_count_reached_functor(std::atomic<unsigned int>& counter,
const unsigned int& max,
const unsigned int& maxval,
Output_iterator out)
: counter(counter), max(max), out(out)
: counter(counter), maxval(maxval), out(out)
{}
template<class T>
@ -78,7 +78,7 @@ struct Throw_at_count_reached_functor {
{
*out++ = t;
++counter;
if(counter >= max)
if(counter >= maxval)
{
throw CGAL::internal::Throw_at_output_exception();
}