Hold exception translators by unique_ptr
- and removed range deleters
This commit is contained in:
1 parent
cb6963216f
commit
46bf7605f4
4 files changed
+5
-15
No files matched your search
@@ -45,16 +45,6 @@ namespace Catch {
|
||||
virtual ~NonCopyable();
|
||||
};
|
||||
|
||||
template<typename ContainerT>
|
||||
void deleteAll( ContainerT& container ) {
|
||||
for( auto p : container )
|
||||
delete p;
|
||||
}
|
||||
template<typename AssociativeContainerT>
|
||||
void deleteAllValues( AssociativeContainerT& container ) {
|
||||
for( auto const& kvp : container )
|
||||
delete kvp.second;
|
||||
}
|
||||
|
||||
bool startsWith( std::string const& s, std::string const& prefix );
|
||||
bool startsWith( std::string const& s, char prefix );
|
||||
|
||||
Reference in new issue
Block a user