octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

xmin versus std::min in gl-render.cc


From: Rik
Subject: xmin versus std::min in gl-render.cc
Date: Mon, 14 Oct 2013 09:35:43 -0700

10/14/13

Michael,

Is there a reason why we define our own min function in gl-render.cc?

The code at line 47 is

static octave_idx_type
xmin (octave_idx_type x, octave_idx_type y)
{
  return x < y ? x : y;
}

There is also a class variable, xmin, so it it sometimes confusing whether
the function or the variable is intended.  It seems like it would be
cleaner to replace our own function xmin with std::min.

Cheers,
Rik



reply via email to

[Prev in Thread] Current Thread [Next in Thread]