Refactored command line parser to be more cohesive
Also added a set of unit tests for them (incomplete)
This commit is contained in:
1 parent
06e959be3e
commit
163088a11f
12 files changed
+605
-416
No files matched your search
@@ -35,6 +35,17 @@ 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 ) {
|
||||
typename ContainerT::const_iterator it = container.begin();
|
||||
|
||||
Reference in new issue
Block a user