Fixed documentation of sf::NonCopyable

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1314 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2009-12-30 10:22:07 +00:00
parent e8f2136890
commit 54e70a47f0

View File

@ -38,7 +38,7 @@ namespace sf
/// class non-copyable /// class non-copyable
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
struct SFML_API NonCopyable class SFML_API NonCopyable
{ {
protected : protected :
@ -94,9 +94,11 @@ private :
/// To create a non-copyable class, simply inherit from /// To create a non-copyable class, simply inherit from
/// sf::NonCopyable. /// sf::NonCopyable.
/// ///
/// Because sf::NonCopyable is a struct and not a class, /// The type of inheritance (public or private) doesn't matter,
/// inheritance is public by default so that the syntax for /// the copy constructor and assignment operator are declared private
/// using it is even shorter (see below). /// 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: /// Usage example:
/// \code /// \code