Commit c9b8a023 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[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.
parent 0e56f890
......@@ -32,6 +32,7 @@
#include <boost/array.hpp>
#include <boost/bind.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/noncopyable.hpp>
#include <list>
#include <utility>
......@@ -83,7 +84,7 @@ typedef std::pair<CommandID, data::ConstElementPtr> Command;
/// \c DataSrcClientsMgr.
template <typename ThreadType, typename BuilderType, typename MutexType,
typename CondVarType>
class DataSrcClientsMgrBase {
class DataSrcClientsMgrBase : boost::noncopyable {
typedef std::map<dns::RRClass,
boost::shared_ptr<datasrc::ConfigurableClientList> >
......@@ -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 <typename MutexType, typename CondVarType>
class DataSrcClientsBuilderBase {
class DataSrcClientsBuilderBase : boost::noncopyable {
/// \brief Constructor.
Supports Markdown
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