Skip to content

Commit d51cb2b

Browse files
committed
C++11: NonCopyable: Use = delete instead of private.
1 parent 0da5c84 commit d51cb2b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

libxml++/noncopyable.h

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,8 @@ class NonCopyable
2020
NonCopyable();
2121
virtual ~NonCopyable();
2222

23-
private:
24-
//These are not-implemented.
25-
//They are just here so we can declare them as private
26-
//so that this, and any derived class, do not have
27-
//copy constructors.
28-
NonCopyable(const NonCopyable&);
29-
NonCopyable& operator=(const NonCopyable&);
23+
NonCopyable(const NonCopyable&) = delete;
24+
NonCopyable& operator=(const NonCopyable&) = delete;
3025
};
3126

3227
} // namespace xmlpp

0 commit comments

Comments
 (0)