mirror of
https://github.com/boostorg/python.git
synced 2026-01-24 06:02:14 +00:00
remove std_min and std_max, update minmax coding guidelines
[SVN r23162]
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
#include <boost/python/self.hpp>
|
||||
#include <boost/python/dict.hpp>
|
||||
#include <boost/python/str.hpp>
|
||||
#include <boost/minmax.hpp>
|
||||
#include <functional>
|
||||
#include <vector>
|
||||
#include <cstddef>
|
||||
@@ -482,7 +481,7 @@ namespace objects
|
||||
// Build a tuple of the base Python type objects. If no bases
|
||||
// were declared, we'll use our class_type() as the single base
|
||||
// class.
|
||||
std::size_t const num_bases = std_max(num_types - 1, static_cast<std::size_t>(1));
|
||||
std::size_t const num_bases = (std::max)(num_types - 1, static_cast<std::size_t>(1));
|
||||
handle<> bases(PyTuple_New(num_bases));
|
||||
|
||||
for (std::size_t i = 1; i <= num_bases; ++i)
|
||||
|
||||
Reference in New Issue
Block a user