What if I want to make it so that my code works regardless of the datatype of the array? In C++, I know there's "templates" which allow you to write code that works with different data types without having to duplicate the implementation, e.g.
Nice! Works great! For anyone else, this is what I had to switch my code to:
#define GENERIC_MACRO(TYPE) \TYPE get_value_from_list(TYPE list[]; int start_offset, absolute_index) { \ int local_index = absolute_index - start_offset; \ return list[max(0, min(local_index, len(list) - 1))]; \} \// Apparently this blank line is importantGENERIC_MACRO(float)
GENERIC_MACRO(vector)
// etc, for all types you want to support.#undef GENERIC_MACRO
I'd love to! I'm kind of new to this, where do I access that RFE? I couldn't figure it out.
Thanks, Anson
I don't think you can, I believe BUGs and RFEs are tied to an account so only profiles associated with that account can access them which makes sense from the point of view that a lot of BUG/RFE reports can contain sensitive information
but you can always submit your own RFE and I believe they are being bundled together if they overlap