mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
Do not introduce VTable when using the NonCopyable helper
This commit is contained in:
parent
ca4c6218d4
commit
7c48ea6016
@ -37,7 +37,4 @@ namespace Catch {
|
||||
return std::string();
|
||||
}
|
||||
|
||||
NonCopyable::NonCopyable() = default;
|
||||
NonCopyable::~NonCopyable() = default;
|
||||
|
||||
}
|
||||
} // end namespace Catch
|
||||
|
@ -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 {
|
||||
|
@ -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;
|
||||
|
@ -32,6 +32,4 @@ namespace Catch {
|
||||
getMutableRegistryHub().registerStartupException();
|
||||
}
|
||||
}
|
||||
|
||||
AutoReg::~AutoReg() = default;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user