struct -> class normalization for various interface types

This commit is contained in:
Martin Hořeňovský
2022-04-11 00:00:19 +02:00
parent 1a56ba851b
commit 8cdaebe964
23 changed files with 66 additions and 53 deletions

View File

@@ -17,17 +17,18 @@
namespace Catch {
using exceptionTranslateFunction = std::string(*)();
struct IExceptionTranslator;
class IExceptionTranslator;
using ExceptionTranslators = std::vector<Detail::unique_ptr<IExceptionTranslator const>>;
struct IExceptionTranslator {
class IExceptionTranslator {
public:
virtual ~IExceptionTranslator(); // = default
virtual std::string translate( ExceptionTranslators::const_iterator it, ExceptionTranslators::const_iterator itEnd ) const = 0;
};
struct IExceptionTranslatorRegistry {
class IExceptionTranslatorRegistry {
public:
virtual ~IExceptionTranslatorRegistry(); // = default
virtual std::string translateActiveException() const = 0;
};