Removed SafeBool

This commit is contained in:
Phil Nash 2017-04-25 14:46:48 +00:00
parent e1bca7017d
commit cc8206f4c3
4 changed files with 5 additions and 16 deletions

View file

@ -44,17 +44,6 @@ namespace Catch {
virtual ~NonCopyable();
};
class SafeBool {
public:
typedef void (SafeBool::*type)() const;
static type makeSafe( bool value ) {
return value ? &SafeBool::trueValue : 0;
}
private:
void trueValue() const {}
};
template<typename ContainerT>
inline void deleteAll( ContainerT& container ) {
for( auto p : container )