mirror of
https://github.com/boostorg/python.git
synced 2026-01-20 16:52:15 +00:00
workarounds for KCC's reservation of 'overload' as a keyword
[SVN r12451]
This commit is contained in:
@@ -31,7 +31,7 @@ struct BOOST_PYTHON_DECL function : PyObject
|
||||
|
||||
private: // helper functions
|
||||
void argument_error(PyObject* args, PyObject* keywords) const;
|
||||
void add_overload(function* overload);
|
||||
void add_overload(function*);
|
||||
|
||||
private: // data members
|
||||
py_function m_fn;
|
||||
|
||||
@@ -63,9 +63,9 @@ void function::argument_error(PyObject* args, PyObject* keywords) const
|
||||
PyErr_BadArgument();
|
||||
}
|
||||
|
||||
void function::add_overload(function* overload)
|
||||
void function::add_overload(function* overload_)
|
||||
{
|
||||
Py_XINCREF(overload);
|
||||
Py_XINCREF(overload_);
|
||||
|
||||
function* parent = this;
|
||||
|
||||
@@ -73,7 +73,7 @@ void function::add_overload(function* overload)
|
||||
{
|
||||
parent = parent->m_overloads;
|
||||
}
|
||||
parent->m_overloads = overload;
|
||||
parent->m_overloads = overload_;
|
||||
}
|
||||
|
||||
void function::add_to_namespace(
|
||||
|
||||
Reference in New Issue
Block a user