[arrayfire] 29/79: Requires some knowledge of array_proxy_impl. Fixes #787

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Jun 15 13:38:04 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository arrayfire.

commit 59560eae0588fcca2abb9b2aa8f529b26a59b8d1
Author: Filipe Maia <filipe.c.maia at gmail.com>
Date:   Mon Jun 8 21:04:05 2015 +0200

    Requires some knowledge of array_proxy_impl. Fixes #787
---
 src/api/cpp/array.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/api/cpp/array.cpp b/src/api/cpp/array.cpp
index 28a8e0c..cf73dbf 100644
--- a/src/api/cpp/array.cpp
+++ b/src/api/cpp/array.cpp
@@ -558,8 +558,9 @@ namespace af
     {
     }
 
-    af::array::array_proxy::array_proxy(const array_proxy &other) {
-        *impl = *(other.impl);
+    af::array::array_proxy::array_proxy(const array_proxy &other)
+        : impl(new array_proxy_impl(*other.impl->parent, other.impl->indices, other.impl->lin))
+    {
     }
 
 #if __cplusplus > 199711L

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git



More information about the debian-science-commits mailing list