You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Igor Sapego (JIRA)" <ji...@apache.org> on 2017/07/27 17:44:01 UTC

[jira] [Updated] (IGNITE-5758) CPP: Add pointer semantics for primitive types

     [ https://issues.apache.org/jira/browse/IGNITE-5758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Sapego updated IGNITE-5758:
--------------------------------
    Labels: cpp  (was: )

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