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/14 14:01:05 UTC

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

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)