[ https://issues.apache.org/jira/browse/IGNITE-5758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16103443#comment-16103443 ]
ASF GitHub Bot commented on IGNITE-5758: ---------------------------------------- GitHub user isapego opened a pull request: https://github.com/apache/ignite/pull/2354 IGNITE-5758: CPP: Added pointer semantics for primitive types You can merge this pull request into a Git repository by running: $ git pull https://github.com/gridgain/apache-ignite ignite-5758 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/ignite/pull/2354.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #2354 ---- commit 14bc8e263244760e3e1057ce2fd645183c926e0e Author: Igor Sapego <isap...@gridgain.com> Date: 2017-07-26T17:15:08Z IGNITE-5758: Added test commit de3b0e51425df81d9abaf67deb0c4817c090d901 Author: Igor Sapego <isap...@gridgain.com> Date: 2017-07-26T17:15:29Z IGNITE-5758: Implemented writing. commit 65cd23facb66a119ba44c442a3482620079f0a70 Author: Igor Sapego <isap...@gridgain.com> Date: 2017-07-26T18:10:51Z IGNITE-5758: Implemented reading. commit b60db26a52d590171b498a92eb9287684845eb4c Author: Igor Sapego <isap...@gridgain.com> Date: 2017-07-27T16:05:56Z IGNITE-5758: Fixed tests and reader commit fc7f70c6f66479ee6080a2b42ae2bd25ee2c95d3 Author: Igor Sapego <isap...@gridgain.com> Date: 2017-07-27T16:12:08Z IGNITE-5758: Added raw tests commit 30c0d07876db35127ceabdef0d905a86c2086e93 Author: Igor Sapego <isap...@gridgain.com> Date: 2017-07-27T16:32:31Z IGNITE-5758: Added null fields to tests ---- > 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)