add DECLARE_NO_COPY_TEMPLATE_CLASS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3203,6 +3203,11 @@ typedef const void* WXWidget;
|
||||
classname(const classname&); \
|
||||
classname& operator=(const classname&);
|
||||
|
||||
#define DECLARE_NO_COPY_TEMPLATE_CLASS(classname, arg) \
|
||||
private: \
|
||||
classname(const classname<arg>&); \
|
||||
classname& operator=(const classname<arg>&);
|
||||
|
||||
#define DECLARE_NO_ASSIGN_CLASS(classname) \
|
||||
private: \
|
||||
classname& operator=(const classname&);
|
||||
|
@@ -290,6 +290,18 @@ enum wxPaperSize
|
||||
*/
|
||||
#define DECLARE_NO_COPY_CLASS(classname)
|
||||
|
||||
/**
|
||||
Equivalent of DECLARE_NO_COPY_CLASS() for template classes.
|
||||
|
||||
This macro can be used for template classes (with a single template
|
||||
parameter) for the same purpose as DECLARE_NO_COPY_CLASS() is used with the
|
||||
non-template classes.
|
||||
|
||||
@param classname The name of the template class.
|
||||
@param arg The name of the template parameter.
|
||||
*/
|
||||
#define DECLARE_NO_COPY_TEMPLATE_CLASS(classname, arg)
|
||||
|
||||
/**
|
||||
This macro can be used around a function declaration to generate warnings
|
||||
indicating that this function is deprecated (i.e. obsolete and planned to
|
||||
|
Reference in New Issue
Block a user