diff --git a/include/wx/defs.h b/include/wx/defs.h index 7c89f53ef7..56c4929537 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -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&); \ + classname& operator=(const classname&); + #define DECLARE_NO_ASSIGN_CLASS(classname) \ private: \ classname& operator=(const classname&); diff --git a/interface/wx/defs.h b/interface/wx/defs.h index b1b2c9536e..cdfa5d7ac5 100644 --- a/interface/wx/defs.h +++ b/interface/wx/defs.h @@ -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