From 15855fa84a09fd1fd486d357c38db0f2bd181e74 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 4 Mar 2014 23:23:45 +0000 Subject: HistoryStats compiles ok now git-svn-id: http://svn.miranda-ng.org/main/trunk@8399 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HistoryStats/src/utils/pattern.h | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 plugins/HistoryStats/src/utils/pattern.h (limited to 'plugins/HistoryStats/src/utils/pattern.h') diff --git a/plugins/HistoryStats/src/utils/pattern.h b/plugins/HistoryStats/src/utils/pattern.h new file mode 100644 index 0000000000..f8ce4996a7 --- /dev/null +++ b/plugins/HistoryStats/src/utils/pattern.h @@ -0,0 +1,39 @@ +#if !defined(HISTORYSTATS_GUARD_UTILS_PATTERN_H) +#define HISTORYSTATS_GUARD_UTILS_PATTERN_H + +namespace pattern +{ + template + class NotCopyable + { + private: + NotCopyable(const NotCopyable&); + const NotCopyable& operator =(const NotCopyable&); + + protected: + NotCopyable() + { + } + + ~NotCopyable() + { + } + }; + + template + class NotInstantiable + { + private: + NotInstantiable(const NotInstantiable&); + const NotInstantiable& operator =(const NotInstantiable&); + + protected: + NotInstantiable(); + + ~NotInstantiable() + { + } + }; +} + +#endif // HISTORYSTATS_GUARD_UTILS_PATTERN_H \ No newline at end of file -- cgit v1.2.3