diff options
Diffstat (limited to 'src/mongo/db/service_context.h')
-rw-r--r-- | src/mongo/db/service_context.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/service_context.h b/src/mongo/db/service_context.h index 5e54e8684d9..8a9741bcc42 100644 --- a/src/mongo/db/service_context.h +++ b/src/mongo/db/service_context.h @@ -33,7 +33,6 @@ #include <functional> #include <vector> -#include "mongo/base/disallow_copying.h" #include "mongo/base/global_initializer_registerer.h" #include "mongo/db/logical_session_id.h" #include "mongo/db/storage/storage_engine.h" @@ -70,7 +69,8 @@ class TransportLayer; * including limitations on the lifetime of registered listeners. */ class KillOpListenerInterface { - MONGO_DISALLOW_COPYING(KillOpListenerInterface); + KillOpListenerInterface(const KillOpListenerInterface&) = delete; + KillOpListenerInterface& operator=(const KillOpListenerInterface&) = delete; public: /** @@ -95,7 +95,8 @@ protected: * zero or more Clients, which in turn each own OperationContexts. */ class ServiceContext final : public Decorable<ServiceContext> { - MONGO_DISALLOW_COPYING(ServiceContext); + ServiceContext(const ServiceContext&) = delete; + ServiceContext& operator=(const ServiceContext&) = delete; public: /** |