aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2025-09-29 17:11:58 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2025-09-29 17:11:58 +0200
commitf011dcafb0f583c89ed9971238fd83ddcbdb5438 (patch)
treee118ea27af987540fccb2cb1563cc8d9508b255c /src
parent4e109a0c12d245b155bf03cb561c01b242666395 (diff)
downloadlanes-f011dcafb0f583c89ed9971238fd83ddcbdb5438.tar.gz
lanes-f011dcafb0f583c89ed9971238fd83ddcbdb5438.tar.bz2
lanes-f011dcafb0f583c89ed9971238fd83ddcbdb5438.zip
Lift restriction on tables as table keys
As demonstrated by the unit tests, there is no problem with using a table as a table key
Diffstat (limited to 'src')
-rw-r--r--src/intercopycontext.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/intercopycontext.cpp b/src/intercopycontext.cpp
index a8b3374..7fb2706 100644
--- a/src/intercopycontext.cpp
+++ b/src/intercopycontext.cpp
@@ -1106,10 +1106,6 @@ void InterCopyContext::interCopyString() const
1106[[nodiscard]] 1106[[nodiscard]]
1107InterCopyOneResult InterCopyContext::interCopyTable() const 1107InterCopyOneResult InterCopyContext::interCopyTable() const
1108{ 1108{
1109 if (vt == VT::KEY) {
1110 return InterCopyOneResult::NotCopied;
1111 }
1112
1113 STACK_CHECK_START_REL(L1, 0); 1109 STACK_CHECK_START_REL(L1, 0);
1114 STACK_CHECK_START_REL(L2, 0); 1110 STACK_CHECK_START_REL(L2, 0);
1115 DEBUGSPEW_CODE(DebugSpew(nullptr) << "TABLE " << name << std::endl); 1111 DEBUGSPEW_CODE(DebugSpew(nullptr) << "TABLE " << name << std::endl);