Commit edefc20c authored by Murray Cumming's avatar Murray Cumming
Browse files

ConnectionPool: Prevent copying and moving.

By using C++11's "= delete".
parent 8e7578d8
......@@ -86,7 +86,11 @@ class ConnectionPool : public sigc::trackable
{
private:
ConnectionPool();
//ConnectionPool(const ConnectionPool& src);
ConnectionPool(const ConnectionPool& src) = delete;
ConnectionPool(ConnectionPool&& src) = delete;
ConnectionPool& operator=(const ConnectionPool& src) = delete;
ConnectionPool& operator=(ConnectionPool&& src) = delete;
virtual ~ConnectionPool();
//ConnectionPool& operator=(const ConnectionPool& src);
......
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