git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55018
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
classname(const classname&); \
classname& operator=(const classname&);
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&);
#define DECLARE_NO_ASSIGN_CLASS(classname) \
private: \
classname& operator=(const classname&);
*/
#define DECLARE_NO_COPY_CLASS(classname)
*/
#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
/**
This macro can be used around a function declaration to generate warnings
indicating that this function is deprecated (i.e. obsolete and planned to