mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 02:55:50 +00:00
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
|
||||
the process is terminated, a listener object gets notified so that the
|
||||
client application can perform logging or emit further diagnostics.
|
||||
*/
|
||||
class FatalError : public Uncopyable
|
||||
class FatalError
|
||||
{
|
||||
public:
|
||||
struct Reporter
|
||||
@@ -145,6 +145,9 @@ public:
|
||||
*/
|
||||
FatalError (char const* message, char const* filePath, int lineNumber);
|
||||
|
||||
FatalError(FatalError const&) = delete;
|
||||
FatalError& operator= (FatalError const&) = delete;
|
||||
|
||||
private:
|
||||
static Reporter* s_reporter;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user