mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 14:45:12 +00:00
quench a warning on windows
This commit is contained in:
parent
b3ee3eaf81
commit
d2a902bd45
@ -305,9 +305,9 @@ private:
|
||||
std::string msg = "Incompatible function arguments. The "
|
||||
"following argument types are supported:\n";
|
||||
int ctr = 0;
|
||||
for (function_entry *it = overloads; it != nullptr; it = it->next) {
|
||||
for (function_entry *it2 = overloads; it2 != nullptr; it2 = it2->next) {
|
||||
msg += " "+ std::to_string(++ctr) + ". ";
|
||||
msg += it->signature;
|
||||
msg += it2->signature;
|
||||
msg += "\n";
|
||||
}
|
||||
PyErr_SetString(PyExc_TypeError, msg.c_str());
|
||||
|
Loading…
Reference in New Issue
Block a user