Closed fraguada closed 3 years ago
Certain methods still rely on std::... tuple syntax. We could completely update the syntax by adding a GetTuple analog to std::get<0>(). Would it be something like this in bindings.h:
std::...
std::get<0>()
bindings.h
T& GetTuple(BND_TUPLE& tuple, int index) { #if defined(ON_PYTHON_COMPILE) return tuple[index]; #else return tuple.get(index); #endif }
What would be the appropriate return type?
Reviewing this and I can only find very few cases where something like this would be needed, and it is more a cosmetics benefit.
Certain methods still rely on
std::...
tuple syntax. We could completely update the syntax by adding a GetTuple analog tostd::get<0>()
. Would it be something like this inbindings.h
:What would be the appropriate return type?