[ 
https://issues.apache.org/jira/browse/IGNITE-5758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16104687#comment-16104687
 ] 

Pavel Tupitsyn commented on IGNITE-5758:
----------------------------------------

[~isapego] looks good to me.

> 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)

Reply via email to