2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-30 08:02:38 +00:00

remove std_min and std_max, update minmax coding guidelines

[SVN r23162]
This commit is contained in:
Eric Niebler
2004-06-23 04:49:48 +00:00
parent c6587596b1
commit 9d7097177d
2 changed files with 5 additions and 4 deletions

View File

@@ -143,7 +143,8 @@ class slice : public object
throw std::invalid_argument( "Zero-length slice");
if (i >= 0) {
ret.start = begin;
std::advance( ret.start, std_min(i, max_dist-1));
BOOST_USING_STD_MIN();
std::advance( ret.start, min BOOST_PREVENT_MACRO_SUBSTITUTION(i, max_dist-1));
}
else {
if (i < -max_dist && ret.step < 0)
@@ -187,7 +188,8 @@ class slice : public object
if (i > 0) {
ret.stop = begin;
std::advance( ret.stop, std_min( i-1, max_dist-1));
BOOST_USING_STD_MIN();
std::advance( ret.stop, min BOOST_PREVENT_MACRO_SUBSTITUTION( i-1, max_dist-1));
}
else { // i is negative, but not more negative than -max_dist
ret.stop = end;