You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Jacob S. Barrett (JIRA)" <ji...@apache.org> on 2018/02/06 00:54:00 UTC
[jira] [Assigned] (GEODE-4605) Replace void* with
std::shared_ptr in PdxSerializer/PdxWrapper
[ https://issues.apache.org/jira/browse/GEODE-4605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacob S. Barrett reassigned GEODE-4605:
---------------------------------------
Assignee: Jacob S. Barrett
> Replace void* with std::shared_ptr<void> in PdxSerializer/PdxWrapper
> --------------------------------------------------------------------
>
> Key: GEODE-4605
> URL: https://issues.apache.org/jira/browse/GEODE-4605
> Project: Geode
> Issue Type: Improvement
> Components: native client
> Reporter: Jacob S. Barrett
> Assignee: Jacob S. Barrett
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> With {{void*}} it is necessary to keep a deleter function around to free memory allocated to the type erased pointer. Switching to \{{std::shared_ptr<void>}} keeps the type erased pointer but preserves the correct delete behavior with the added bonus of non-ambiguous pointer ownership.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)