Hold exception translators by unique_ptr

- and removed range deleters
This commit is contained in:
Phil Nash
2017-07-20 23:50:07 +01:00
parent cb6963216f
commit 46bf7605f4
4 changed files with 5 additions and 15 deletions

View File

@@ -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 );