mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-29 16:53:30 +01:00
Inherit from NonCopyable to disable RegisterHub copies
This commit is contained in:
parent
860de28b8d
commit
47c8994a61
@ -20,10 +20,8 @@ namespace Catch {
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
class RegistryHub : public IRegistryHub, public IMutableRegistryHub {
|
class RegistryHub : public IRegistryHub, public IMutableRegistryHub,
|
||||||
|
private NonCopyable {
|
||||||
RegistryHub( RegistryHub const& );
|
|
||||||
void operator=( RegistryHub const& );
|
|
||||||
|
|
||||||
public: // IRegistryHub
|
public: // IRegistryHub
|
||||||
RegistryHub() {
|
RegistryHub() {
|
||||||
|
Loading…
Reference in New Issue
Block a user