[ https://issues.apache.org/jira/browse/GEODE-4186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Addison resolved GEODE-4186. ---------------------------- Resolution: Fixed > Replace all decayed array parameters (Type *) with std::vector. > --------------------------------------------------------------- > > Key: GEODE-4186 > URL: https://issues.apache.org/jira/browse/GEODE-4186 > Project: Geode > Issue Type: Improvement > Components: native client > Reporter: Jacob S. Barrett > Priority: Major > Labels: pull-request-available > Time Spent: 5h 20m > Remaining Estimate: 0h > > Replace all decayed array parameters (Type *) with std::vector. For example > {code} > void writeIntArray(int32_t* array, size_t length); > int32_t* readIntArray(size_t& length); > {code} > to > {code} > void writeIntArray(const std::vector<int32_t>& array); > std::vector<int32_t> readIntArray(); > {code} > This removes the ambiguity around memory ownership, makes the method > functional (no out param), collocates the length and other array attributes > with the vector, and removes null. -- This message was sent by Atlassian JIRA (v7.6.3#76005)