Igor Sapego created IGNITE-5758:
-----------------------------------
Summary: CPP: Add pointer semantics for primitive types
Key: IGNITE-5758
URL:
https://issues.apache.org/jira/browse/IGNITE-5758 Project: Ignite
Issue Type: Improvement
Components: platforms
Affects Versions: 2.0
Reporter: Igor Sapego
Assignee: Igor Sapego
Fix For: 2.2
Currently, we can write any user object using two types of semantics:
{code}
// Basic
writer.WriteObject<ObjectType>(obj);
// Pointer-based
writer.WriteObject<ObjectType*>(&obj);
{code}
However, this does not work for primitive types:
{code}
// Basic. Works just fine
writer.WriteObject<std::string>(str);
// Pointer-based. Compilation error.
writer.WriteObject<std::string*>(&str);
{code}
Need to add support of the pointer semantics for the primitive types as well.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)