catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Inherit from NonCopyable to disable RegisterHub copies
- Commit
47c8994a61e9bd8f39c34421b5a681f4a0e4e747- Author
- Martin Hořeňovský ·
- Parents
860de28b8d87
Changes
include/internal/catch_registry_hub.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/internal/catch_registry_hub.hpp b/include/internal/catch_registry_hub.hpp index 5e83203f..23c9628c 100644 --- a/include/internal/catch_registry_hub.hpp +++ b/include/internal/catch_registry_hub.hpp @@ -20,10 +20,8 @@ namespace Catch { namespace { - class RegistryHub : public IRegistryHub, public IMutableRegistryHub { - - RegistryHub( RegistryHub const& ); - void operator=( RegistryHub const& ); + class RegistryHub : public IRegistryHub, public IMutableRegistryHub, + private NonCopyable { public: // IRegistryHub RegistryHub() {