[libxml++] NonCopyable: Make it obvious that it can't be moved



commit 4b814b35ee69e35bb39f210fb62cc727e6dfb907
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Thu Jan 7 09:53:23 2016 +0100

    NonCopyable: Make it obvious that it can't be moved
    
    Declare the move operators deleted. They are deleted anyway, but this makes
    it obvious.

 libxml++/noncopyable.h |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libxml++/noncopyable.h b/libxml++/noncopyable.h
index 81920c8..244c7e0 100644
--- a/libxml++/noncopyable.h
+++ b/libxml++/noncopyable.h
@@ -11,8 +11,7 @@
 namespace xmlpp
 {
 
-/**
- * A base for classes which cannot be copied.
+/** A base for classes which cannot be copied or moved.
  */
 class NonCopyable
 {
@@ -22,6 +21,8 @@ protected:
 
   NonCopyable(const NonCopyable&) = delete;
   NonCopyable& operator=(const NonCopyable&) = delete;
+  NonCopyable(NonCopyable&&) = delete;
+  NonCopyable& operator=(NonCopyable&&) = delete;
 };
 
 } // namespace xmlpp


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]