We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67ef694 commit 77d1985Copy full SHA for 77d1985
include/SFML/System/NonCopyable.hpp
@@ -51,6 +51,16 @@ class SFML_SYSTEM_API NonCopyable
51
///
52
////////////////////////////////////////////////////////////
53
NonCopyable() {}
54
+
55
+ ////////////////////////////////////////////////////////////
56
+ /// \brief Default destructor
57
+ ///
58
+ /// By declaring a protected destructor it's impossible to
59
+ /// call delete on a pointer of sf::NonCopyable, thus
60
+ /// preventing possible resource leaks.
61
62
63
+ ~NonCopyable() {}
64
65
private:
66
0 commit comments