diff options
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/Binder.hpp | 3 | ||||
-rw-r--r-- | osdep/ManagedRoute.hpp | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/osdep/Binder.hpp b/osdep/Binder.hpp index d7c3f03c..93fad9f1 100644 --- a/osdep/Binder.hpp +++ b/osdep/Binder.hpp @@ -60,7 +60,6 @@ #include <set> #include <atomic> -#include "../node/NonCopyable.hpp" #include "../node/InetAddress.hpp" #include "../node/Mutex.hpp" #include "../node/Utils.hpp" @@ -87,7 +86,7 @@ namespace ZeroTier { * On OSes that do not support local port enumeration or where this is not * meaningful, this degrades to binding to wildcard. */ -class Binder : NonCopyable +class Binder { private: struct _Binding diff --git a/osdep/ManagedRoute.hpp b/osdep/ManagedRoute.hpp index 873d0cfb..779ad6a1 100644 --- a/osdep/ManagedRoute.hpp +++ b/osdep/ManagedRoute.hpp @@ -34,7 +34,6 @@ #include "../node/Utils.hpp" #include "../node/SharedPtr.hpp" #include "../node/AtomicCounter.hpp" -#include "../node/NonCopyable.hpp" #include <stdexcept> #include <vector> @@ -45,7 +44,7 @@ namespace ZeroTier { /** * A ZT-managed route that used C++ RAII semantics to automatically clean itself up on deallocate */ -class ManagedRoute : NonCopyable +class ManagedRoute { friend class SharedPtr<ManagedRoute>; @@ -91,6 +90,9 @@ public: inline const char *device() const { return _device; } private: + ManagedRoute(const ManagedRoute &) {} + inline ManagedRoute &operator=(const ManagedRoute &) { return *this; } + InetAddress _target; InetAddress _via; InetAddress _systemVia; // for route overrides |