From 54e70a47f0bf511bf5a6a0946b37aa9660176baa Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Wed, 30 Dec 2009 10:22:07 +0000 Subject: [PATCH] Fixed documentation of sf::NonCopyable git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1314 4e206d99-4929-0410-ac5d-dfc041789085 --- include/SFML/System/NonCopyable.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/SFML/System/NonCopyable.hpp b/include/SFML/System/NonCopyable.hpp index 3081bc62..00827f9d 100644 --- a/include/SFML/System/NonCopyable.hpp +++ b/include/SFML/System/NonCopyable.hpp @@ -38,7 +38,7 @@ namespace sf /// class non-copyable /// //////////////////////////////////////////////////////////// -struct SFML_API NonCopyable +class SFML_API NonCopyable { protected : @@ -94,9 +94,11 @@ private : /// To create a non-copyable class, simply inherit from /// sf::NonCopyable. /// -/// Because sf::NonCopyable is a struct and not a class, -/// inheritance is public by default so that the syntax for -/// using it is even shorter (see below). +/// The type of inheritance (public or private) doesn't matter, +/// the copy constructor and assignment operator are declared private +/// in sf::NonCopyable so they will end up being inaccessible in both +/// cases. Thus you can use a shorter syntax for inheriting from it +/// see below). /// /// Usage example: /// \code