Repository: ignite
Updated Branches:
  refs/heads/master 493cc1484 -> 46d6da578


IGNITE-8012: CPP: BinaryWriter::WriteElement now accepts const reference 
instead of value

This closes #3724


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/ed1a106a
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/ed1a106a
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/ed1a106a

Branch: refs/heads/master
Commit: ed1a106a47190ee4aca1120139a7ae830fecd71e
Parents: 493cc14
Author: Igor Sapego <[email protected]>
Authored: Mon Apr 23 16:27:43 2018 +0300
Committer: Igor Sapego <[email protected]>
Committed: Mon Apr 23 16:29:08 2018 +0300

----------------------------------------------------------------------
 .../cpp/binary/include/ignite/impl/binary/binary_writer_impl.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/ed1a106a/modules/platforms/cpp/binary/include/ignite/impl/binary/binary_writer_impl.h
----------------------------------------------------------------------
diff --git 
a/modules/platforms/cpp/binary/include/ignite/impl/binary/binary_writer_impl.h 
b/modules/platforms/cpp/binary/include/ignite/impl/binary/binary_writer_impl.h
index d896f3e..d5882c7 100644
--- 
a/modules/platforms/cpp/binary/include/ignite/impl/binary/binary_writer_impl.h
+++ 
b/modules/platforms/cpp/binary/include/ignite/impl/binary/binary_writer_impl.h
@@ -605,7 +605,7 @@ namespace ignite
                  * @param val Value.
                  */
                 template<typename T>
-                void WriteElement(int32_t id, T val)
+                void WriteElement(int32_t id, const T& val)
                 {
                     CheckSession(id);
                                         
@@ -622,7 +622,7 @@ namespace ignite
                  * @param val Value.
                  */
                 template<typename K, typename V>
-                void WriteElement(int32_t id, K key, V val)
+                void WriteElement(int32_t id, const K& key, const V& val)
                 {
                     CheckSession(id);
 
@@ -645,7 +645,7 @@ namespace ignite
                  * @param val Object.
                  */
                 template<typename T>
-                void WriteObject(T val)
+                void WriteObject(const T& val)
                 {
                     CheckRawMode(true);
 

Reply via email to