singleton: fix missing *this return value in operator=

while there, disable both operator= and copy ctor, since they
are not supposed to be around for a singleton
getblocktemplate-height
moneromooo-monero 6 years ago
parent 7e957c162a
commit 25e5a8539c
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -50,8 +50,8 @@ namespace Language
class Singleton class Singleton
{ {
Singleton() {} Singleton() {}
Singleton(Singleton &s) {} Singleton(Singleton &s) = delete;
Singleton& operator=(const Singleton&) {} Singleton& operator=(const Singleton&) = delete;
public: public:
static T* instance() static T* instance()
{ {

Loading…
Cancel
Save