@@ -28,10 +28,16 @@ namespace jam::se {
2828 template <uint32_t kHandlersCount , uint32_t kPoolSize >
2929 class SubscriptionManager final
3030 : public std::enable_shared_from_this<
31- SubscriptionManager<kHandlersCount , kPoolSize >>,
32- utils::NoMove,
33- utils::NoCopy {
31+ SubscriptionManager<kHandlersCount , kPoolSize >> {
3432 public:
33+ // Disable copying
34+ SubscriptionManager (const SubscriptionManager&) = delete ;
35+ SubscriptionManager& operator =(const SubscriptionManager&) = delete ;
36+
37+ // Disable moving
38+ SubscriptionManager (SubscriptionManager&&) = delete ;
39+ SubscriptionManager& operator =(SubscriptionManager&&) = delete ;
40+
3541 using Dispatcher = jam::se::IDispatcher;
3642
3743 private:
@@ -73,7 +79,7 @@ namespace jam::se {
7379 {
7480 std::shared_lock lock (engines_cs_);
7581 for (auto &descriptor : engines_) {
76- utils ::reinterpret_pointer_cast<IDisposable>(descriptor.second )
82+ std ::reinterpret_pointer_cast<IDisposable>(descriptor.second )
7783 ->dispose ();
7884 }
7985 }
@@ -98,12 +104,12 @@ namespace jam::se {
98104 {
99105 std::shared_lock lock (engines_cs_);
100106 if (auto it = engines_.find (engineId); it != engines_.end ()) {
101- return utils ::reinterpret_pointer_cast<EngineType>(it->second );
107+ return std ::reinterpret_pointer_cast<EngineType>(it->second );
102108 }
103109 }
104110 std::unique_lock lock (engines_cs_);
105111 if (auto it = engines_.find (engineId); it != engines_.end ()) {
106- return utils ::reinterpret_pointer_cast<EngineType>(it->second );
112+ return std ::reinterpret_pointer_cast<EngineType>(it->second );
107113 }
108114
109115 // / To be sure IDisposable is the first base class, because of later cast
@@ -114,7 +120,7 @@ namespace jam::se {
114120 reinterpret_cast <EngineType *>(0x1 ))));
115121
116122 auto obj = std::make_shared<EngineType>(dispatcher_);
117- engines_[engineId] = utils ::reinterpret_pointer_cast<void >(obj);
123+ engines_[engineId] = std ::reinterpret_pointer_cast<void >(obj);
118124 return obj;
119125 }
120126
@@ -152,7 +158,7 @@ namespace jam::se {
152158 {
153159 std::shared_lock lock (engines_cs_);
154160 if (auto it = engines_.find (engineId); it != engines_.end ()) {
155- engine = utils ::reinterpret_pointer_cast<EngineType>(it->second );
161+ engine = std ::reinterpret_pointer_cast<EngineType>(it->second );
156162 } else {
157163 return ;
158164 }
0 commit comments