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:
parent
e8f2136890
commit
54e70a47f0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user