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();
|
return std::string();
|
||||||
}
|
}
|
||||||
|
|
||||||
NonCopyable::NonCopyable() = default;
|
} // end namespace Catch
|
||||||
NonCopyable::~NonCopyable() = default;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
@ -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 {
|
||||||
|
@ -20,7 +20,7 @@ namespace Catch {
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
Session();
|
Session();
|
||||||
~Session() override;
|
~Session();
|
||||||
|
|
||||||
void showHelp() const;
|
void showHelp() const;
|
||||||
void libIdentify();
|
void libIdentify();
|
||||||
|
@ -32,6 +32,4 @@ namespace Catch {
|
|||||||
getMutableRegistryHub().registerStartupException();
|
getMutableRegistryHub().registerStartupException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
AutoReg::~AutoReg() = default;
|
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user