[arrayfire] 01/75: Prevent copy assignment & construction of af::Window object

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Feb 29 08:01:06 UTC 2016


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

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

commit 01d819af995f6de6d18036b18aaa75f7e734384a
Author: pradeep <pradeep at arrayfire.com>
Date:   Thu Feb 4 10:28:41 2016 +0530

    Prevent copy assignment & construction of af::Window object
    
    Fixes #1244
---
 include/af/graphics.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/af/graphics.h b/include/af/graphics.h
index defdbc1..7485686 100644
--- a/include/af/graphics.h
+++ b/include/af/graphics.h
@@ -30,6 +30,8 @@ namespace af
 
    \brief Window object to render af::arrays
 
+   Windows are not CopyConstructible or CopyAssignable.
+
    \ingroup graphics_func
  */
 class AFAPI Window {
@@ -43,6 +45,9 @@ class AFAPI Window {
 
         void initWindow(const int width, const int height, const char* const title);
 
+        Window(const Window&);                 // Prevent copy-construction
+        Window& operator=(const Window&);      // Prevent assignment
+
     public:
         /**
            Creates a window object with default width
@@ -84,6 +89,7 @@ class AFAPI Window {
            \ingroup gfx_func_window
          */
         Window(const af_window wnd);
+
         /**
            Destroys the window handle
 

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