[arrayfire] 310/408: BUGFIX: in array_proxy::get() const

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:12:20 UTC 2015


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

ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.

commit cc0f401150881d47b22f3af09cf96ec6e42a97c5
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date:   Fri Aug 21 18:35:21 2015 -0400

    BUGFIX: in array_proxy::get() const
---
 src/api/cpp/array.cpp | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/api/cpp/array.cpp b/src/api/cpp/array.cpp
index 22dacc9..8bc9a38 100644
--- a/src/api/cpp/array.cpp
+++ b/src/api/cpp/array.cpp
@@ -606,6 +606,14 @@ namespace af
         return out;
     }
 
+    af_array array::array_proxy::get() const
+    {
+        array tmp = *this;
+        af_array out = 0;
+        AF_THROW(af_retain_array(&out, tmp.get()));
+        return out;
+    }
+
 #define MEM_FUNC(PREFIX, FUNC)                  \
     PREFIX array::array_proxy::FUNC() const     \
     {                                           \
@@ -613,7 +621,6 @@ namespace af
         return out.FUNC();                      \
     }
 
-    MEM_FUNC(af_array               , get)
     MEM_FUNC(dim_t                  , elements)
     MEM_FUNC(array                  , T)
     MEM_FUNC(array                  , H)

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