Do not introduce VTable when using the NonCopyable helper

This commit is contained in:
Martin Hořeňovský 2019-10-30 18:51:14 +01:00
parent ca4c6218d4
commit 7c48ea6016
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
5 changed files with 4 additions and 12 deletions

View File

@ -37,7 +37,4 @@ namespace Catch {
return std::string();
}
NonCopyable::NonCopyable() = default;
NonCopyable::~NonCopyable() = default;
}
} // end namespace Catch

View File

@ -38,10 +38,8 @@ namespace Catch {
NonCopyable( NonCopyable && ) = delete;
NonCopyable& operator = ( NonCopyable const& ) = delete;
NonCopyable& operator = ( NonCopyable && ) = delete;
protected:
NonCopyable();
virtual ~NonCopyable();
NonCopyable() noexcept = default;
};
struct SourceLineInfo {

View File

@ -20,7 +20,7 @@ namespace Catch {
public:
Session();
~Session() override;
~Session();
void showHelp() const;
void libIdentify();
@ -41,7 +41,7 @@ namespace Catch {
returnCode = run();
return returnCode;
}
int run();
clara::Parser const& cli() const;

View File

@ -32,6 +32,4 @@ namespace Catch {
getMutableRegistryHub().registerStartupException();
}
}
AutoReg::~AutoReg() = default;
}

View File

@ -44,7 +44,6 @@ struct NameAndTags {
struct AutoReg : NonCopyable {
AutoReg( ITestInvoker* invoker, SourceLineInfo const& lineInfo, StringRef const& classOrMethod, NameAndTags const& nameAndTags ) noexcept;
~AutoReg();
};
} // end namespace Catch