[gnome-system-monitor] Define a helper NonCopyable base class.
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor] Define a helper NonCopyable base class.
- Date: Sat, 3 Jan 2015 14:00:00 +0000 (UTC)
commit 65cf01faef9a2a8682387751509a7d56051c16e4
Author: BenoƮt Dejean <bdejean gmail com>
Date: Wed Apr 23 12:30:56 2014 +0200
Define a helper NonCopyable base class.
https://bugzilla.gnome.org/show_bug.cgi?id=742070
src/util.h | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/util.h b/src/util.h
index 6d32808..4c6c8bb 100644
--- a/src/util.h
+++ b/src/util.h
@@ -127,6 +127,17 @@ namespace procman
std::string format_network(guint64 rate, guint64 max_rate = 0);
std::string format_network_rate(guint64 rate, guint64 max_rate = 0);
+
+ class NonCopyable
+ {
+ protected:
+ NonCopyable() {} // = default
+ ~NonCopyable() {} // = default
+ private:
+ NonCopyable(const NonCopyable&) /* = delete */;
+ NonCopyable& operator=(const NonCopyable&) /* = delete */;
+ };
+
}
#endif /* _GSM_UTIL_H_ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]