gentoo/dev-python/cgkit/files/cgkit-2.0.0-fix-c++14.patch
David Seifert c1ec4fe569
dev-python/cgkit: Add py3.5 support
* EAPI 6
* Call distutils-r1_python_prepare_all
* Fix compiling in C++14 mode with GCC 6

Bug: https://bugs.gentoo.org/show_bug.cgi?id=611774
Package-Manager: Portage-2.3.4, Repoman-2.3.2
2017-03-11 01:11:06 +01:00

34 lines
1.2 KiB
Diff

Fix building in C++14 mode
--- a/wrappers/py_geoms1.cpp
+++ b/wrappers/py_geoms1.cpp
@@ -142,7 +142,7 @@
string name = it->first;
const PrimVarInfo& info = it->second;
it++;
- return make_tuple(name, info.storage, info.type, info.multiplicity);
+ return boost::python::make_tuple(name, info.storage, info.type, info.multiplicity);
}
}
@@ -163,7 +163,7 @@
}
else
{
- return make_tuple(name, info->storage, info->type, info->multiplicity);
+ return boost::python::make_tuple(name, info->storage, info->type, info->multiplicity);
}
}
--- a/wrappers/py_slot.h
+++ b/wrappers/py_slot.h
@@ -40,7 +40,7 @@
// .def("onValueChanged", &Slot<double>::onValueChanged, &SlotWrapper<double>::base_onValueChanged)
// This macro can be used to create a new Python array slot type
-#define ARRAYSLOT(sname,stype) class_<_ArraySlotIterator<stype> >("_"sname"_Iterator", init<ArraySlot<stype>&>()) \
+#define ARRAYSLOT(sname,stype) class_<_ArraySlotIterator<stype> >("_" sname "_Iterator", init<ArraySlot<stype>&>()) \
.def("__iter__", &_ArraySlotIterator<stype>::__iter__) \
.def("next", &_ArraySlotIterator<stype>::next) \
; \