Commit 65cf01fa authored by Ben's avatar Ben Committed by Robert Roth

Define a helper NonCopyable base class.

https://bugzilla.gnome.org/show_bug.cgi?id=742070
parent 77a81402
......@@ -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_ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment