Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 00443ef

Browse files
Don't use "= default" on the System.Object destructor so its "noexcept" matches derived classes
1 parent 65e70ad commit 00443ef

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

‎Unity/Assets/CppSource/NativeScript/Bindings.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,10 @@ namespace System
966966
: ManagedType(nullptr)
967967
{
968968
}
969+
970+
Object::~Object()
971+
{
972+
}
969973

970974
bool Object::operator==(decltype(nullptr)) const
971975
{

‎Unity/Assets/CppSource/NativeScript/Bindings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ namespace System
585585
Object();
586586
Object(Plugin::InternalUse iu, int32_t handle);
587587
Object(decltype(nullptr));
588-
virtual ~Object() = default;
588+
virtual ~Object();
589589
bool operator==(decltype(nullptr)) const;
590590
bool operator!=(decltype(nullptr)) const;
591591
virtual void ThrowReferenceToThis();

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /