mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 14:05:33 +00:00
[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.
This commit is contained in:
@@ -32,6 +32,7 @@
|
|||||||
#include <boost/array.hpp>
|
#include <boost/array.hpp>
|
||||||
#include <boost/bind.hpp>
|
#include <boost/bind.hpp>
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/shared_ptr.hpp>
|
||||||
|
#include <boost/noncopyable.hpp>
|
||||||
|
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
@@ -83,7 +84,7 @@ typedef std::pair<CommandID, data::ConstElementPtr> Command;
|
|||||||
/// \c DataSrcClientsMgr.
|
/// \c DataSrcClientsMgr.
|
||||||
template <typename ThreadType, typename BuilderType, typename MutexType,
|
template <typename ThreadType, typename BuilderType, typename MutexType,
|
||||||
typename CondVarType>
|
typename CondVarType>
|
||||||
class DataSrcClientsMgrBase {
|
class DataSrcClientsMgrBase : boost::noncopyable {
|
||||||
private:
|
private:
|
||||||
typedef std::map<dns::RRClass,
|
typedef std::map<dns::RRClass,
|
||||||
boost::shared_ptr<datasrc::ConfigurableClientList> >
|
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
|
/// This class is templated so that we can test it without involving actual
|
||||||
/// threads or locks.
|
/// threads or locks.
|
||||||
template <typename MutexType, typename CondVarType>
|
template <typename MutexType, typename CondVarType>
|
||||||
class DataSrcClientsBuilderBase {
|
class DataSrcClientsBuilderBase : boost::noncopyable {
|
||||||
public:
|
public:
|
||||||
/// \brief Constructor.
|
/// \brief Constructor.
|
||||||
///
|
///
|
||||||
|
Reference in New Issue
Block a user