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(); return std::string();
} }
NonCopyable::NonCopyable() = default; } // end namespace Catch
NonCopyable::~NonCopyable() = default;
}

View File

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

View File

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

View File

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

View File

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