From c9b8a023d197a3726f4177409847c29e523a69fc Mon Sep 17 00:00:00 2001 From: JINMEI Tatuya Date: Fri, 19 Oct 2012 20:18:59 -0700 Subject: [PATCH] [2211] make DataSrcClientsMgr and DataSrcClientsBuilder non copyable. they are not expected to be copied, and I actually had a bug due to an accidental copy. Making it non copyable will help avoid such bugs. --- src/bin/auth/datasrc_clients_mgr.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bin/auth/datasrc_clients_mgr.h b/src/bin/auth/datasrc_clients_mgr.h index beebb64518..937365b0d0 100644 --- a/src/bin/auth/datasrc_clients_mgr.h +++ b/src/bin/auth/datasrc_clients_mgr.h @@ -32,6 +32,7 @@ #include #include #include +#include #include #include @@ -83,7 +84,7 @@ typedef std::pair Command; /// \c DataSrcClientsMgr. template -class DataSrcClientsMgrBase { +class DataSrcClientsMgrBase : boost::noncopyable { private: typedef std::map > @@ -272,7 +273,7 @@ namespace datasrc_clientmgr_internal { /// This class is templated so that we can test it without involving actual /// threads or locks. template -class DataSrcClientsBuilderBase { +class DataSrcClientsBuilderBase : boost::noncopyable { public: /// \brief Constructor. ///