Any idea why would this give me the following error:Code:inline void* GetArrayVariableFromType(void* data, size_t location, variabletype::e_type type) { switch (type) { case variabletype::_bool: { return &((std::vector<_bool>*)data)->operator[](location); } break; } return NULL; }
warning C4172: returning address of local variable or temporary