Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Add std namespace prefix in C++ code #397

Merged
merged 11 commits into from
Dec 15, 2020
2 changes: 1 addition & 1 deletion ext/exception.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ namespace Tango

void sequencePyDevError_2_DevErrorList(PyObject *value, Tango::DevErrorList &del)
{
long len = std::max((int)PySequence_Size(value), 0);
long len = (std::max)((int)PySequence_Size(value), 0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. I prefer this approach to messing with the include files.

del.length(len);

for (long loop = 0; loop < len; ++loop)
Expand Down