mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-23 21:15:39 +02:00
Eliminate dynamic cast by promoting interface to parent class
This eliminates one use of RTTI in Catch.
This commit is contained in:
@@ -226,6 +226,13 @@ namespace Catch
|
||||
// Implementing class must also provide the following static method:
|
||||
// static std::string getDescription();
|
||||
|
||||
virtual bool supportsChainedReporters() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual void addChainedReporter( Ptr<IStreamingReporter> const& reporter ) {
|
||||
}
|
||||
|
||||
virtual ReporterPreferences getPreferences() const = 0;
|
||||
|
||||
virtual void noMatchingTestCases( std::string const& spec ) = 0;
|
||||
|
Reference in New Issue
Block a user