make copy constructor and a assignment operator private to avoid misuse of helper class scope guard
Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>pull/427/head
parent
26ac1e2c72
commit
098ddd3a95
|
@ -90,6 +90,10 @@ struct ScopeGuard
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
// no copying allowed.
|
||||||
|
ScopeGuard( const ScopeGuard & );
|
||||||
|
ScopeGuard &operator = ( const ScopeGuard & );
|
||||||
|
|
||||||
T* obj;
|
T* obj;
|
||||||
bool mdismiss;
|
bool mdismiss;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue