forked from boostorg/beast
Use deleted members to prevent copying in Beast (RIPD-268)
This commit is contained in:
committed by
Vinnie Falco
parent
cd97b5beec
commit
60330da25c
@@ -34,7 +34,7 @@ namespace beast
|
||||
Since the DLL is freed when this object is deleted, it's handy for managing
|
||||
library lifetimes using RAII.
|
||||
*/
|
||||
class DynamicLibrary : LeakChecked <DynamicLibrary>, public Uncopyable
|
||||
class DynamicLibrary : LeakChecked <DynamicLibrary>
|
||||
{
|
||||
public:
|
||||
/** Creates an unopened DynamicLibrary object.
|
||||
@@ -46,6 +46,9 @@ public:
|
||||
*/
|
||||
DynamicLibrary (const String& name) : handle (nullptr) { open (name); }
|
||||
|
||||
DynamicLibrary (DynamicLibrary const&) = delete;
|
||||
DynamicLibrary& operator= (DynamicLibrary const&) = delete;
|
||||
|
||||
/** Destructor.
|
||||
If a library is currently open, it will be closed when this object is destroyed.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user