Added copy ctor to ReporterConfig to get rid of warnings

This commit is contained in:
Phil Nash 2012-09-20 08:17:52 +01:00
parent fc1baac7f5
commit 61964881c7
5 changed files with 57 additions and 0 deletions

View File

@ -31,10 +31,21 @@ namespace Catch
fullConfig( _fullConfig ) fullConfig( _fullConfig )
{} {}
ReporterConfig( const ReporterConfig& other )
: name( other.name ),
stream( other.stream ),
includeSuccessfulResults( other.includeSuccessfulResults ),
fullConfig( other.fullConfig )
{}
std::string name; std::string name;
std::ostream& stream; std::ostream& stream;
bool includeSuccessfulResults; bool includeSuccessfulResults;
ConfigData fullConfig; ConfigData fullConfig;
private:
void operator=(const ReporterConfig&);
}; };
class TestCaseInfo; class TestCaseInfo;

View File

@ -0,0 +1,14 @@
//
// catch_tags.h
// CatchSelfTest
//
// Created by Phil Nash on 19/09/2012.
//
//
#ifndef __CatchSelfTest__catch_tags__
#define __CatchSelfTest__catch_tags__
#include <iostream>
#endif /* defined(__CatchSelfTest__catch_tags__) */

View File

@ -0,0 +1,9 @@
//
// catch_tags.hpp
// CatchSelfTest
//
// Created by Phil Nash on 19/09/2012.
//
//
#include "catch_tags.h"

View File

@ -0,0 +1,9 @@
//
// catch_tags.cpp
// CatchSelfTest
//
// Created by Phil Nash on 19/09/2012.
//
//
#include "catch_tags.h"

View File

@ -0,0 +1,14 @@
//
// catch_tags.h
// CatchSelfTest
//
// Created by Phil Nash on 19/09/2012.
//
//
#ifndef __CatchSelfTest__catch_tags__
#define __CatchSelfTest__catch_tags__
#include <iostream>
#endif /* defined(__CatchSelfTest__catch_tags__) */