diff --git a/src/cpp/foreign_array_wrap.hpp b/src/cpp/foreign_array_wrap.hpp index 2a9ef4cb9eeebe931d1a8d42e586f90a6d37ec27..32f0cbe3db874592aa64eaae5d1a9db6067cff24 100644 --- a/src/cpp/foreign_array_wrap.hpp +++ b/src/cpp/foreign_array_wrap.hpp @@ -53,7 +53,7 @@ namespace { return object(self.get(idx)); } - static object getitem(FA &self, tuple idx) + static object getitem(FA &self, boost::python::tuple idx) { if (len(idx) != 2) PYTHON_ERROR(IndexError, "expected index tuple of length 2"); @@ -88,7 +88,7 @@ namespace { self.set(idx, extract(value)); } - static void setitem(FA &self, tuple idx, const value_type &v) + static void setitem(FA &self, boost::python::tuple idx, const value_type &v) { if (len(idx) != 2) PYTHON_ERROR(IndexError, "expected index tuple of length 2"); @@ -147,9 +147,9 @@ void exposePODForeignArray(const std::string &name) .add_property("unit", &cl::unit) .add_property("allocated", &cl::is_allocated) .def("__getitem__", (object (*)(cl &, long)) &w_cl::getitem) - .def("__getitem__", (object (*)(cl &, tuple)) &w_cl::getitem) + .def("__getitem__", (object (*)(cl &, boost::python::tuple)) &w_cl::getitem) .def("__setitem__", (void (*)(cl &, long, object)) &w_cl::setitem) - .def("__setitem__", (void (*)(cl &, tuple, const value_type &)) &w_cl::setitem) + .def("__setitem__", (void (*)(cl &, boost::python::tuple, const value_type &)) &w_cl::setitem) .def("deallocate", &cl::deallocate) ; } diff --git a/src/cpp/triangle.c b/src/cpp/triangle.c index 3c88d61be5d35a1aa6cce91b78d361d026dee9f1..d07556b1aa1b0945cad8ca3e9f9382e7346b445a 100644 --- a/src/cpp/triangle.c +++ b/src/cpp/triangle.c @@ -219,7 +219,7 @@ /* If yours is not a Unix system, define the NO_TIMER compiler switch to */ /* remove the Unix-specific timing code. */ -/* #define NO_TIMER */ +#define NO_TIMER /* To insert lots of self-checks for internal errors, define the SELF_CHECK */ /* symbol. This will slow down the program significantly. It is best to */