Added generic singletons facility

<sigh> yes, I know - but we have them - may as well make them consistent and safer
This commit is contained in:
Phil Nash authored and Martin Hořeňovský committed 2018-08-19 10:34:44 +02:00
1 parent 38248f3f2c
commit eb783fc20e
4 files changed
+84

No files matched your search

+2
View File
@@ -14,6 +14,7 @@
#include "catch_exception_translator_registry.h"
#include "catch_tag_alias_registry.h"
#include "catch_startup_exception_registry.h"
#include "catch_singletons.hpp"
namespace Catch {
@@ -84,6 +85,7 @@ namespace Catch {
return *getTheRegistryHub();
}
void cleanUp() {
cleanupSingletons();
delete getTheRegistryHub();
getTheRegistryHub() = nullptr;
cleanUpContext();