Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions core/metacling/src/TCling.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2764,15 +2764,6 @@ void TCling::InspectMembers(TMemberInspector& insp, const void* obj,
return;
}

if (TClassEdit::IsUniquePtr(cl->GetName())) {
// Ignore error caused by the inside of std::unique_ptr
// This is needed solely because of rootclingIO's IsUnsupportedUniquePointer
// which checks the number of elements in the GetListOfRealData.
// If this usage is removed, this can be replaced with a return statement.
// See https://github.com/root-project/root/issues/13574
isTransient = true;
}

const char* cobj = (const char*) obj; // for ptr arithmetics

// Treat the case of std::complex in a special manner. We want to enforce
Expand Down
20 changes: 0 additions & 20 deletions io/rootpcm/src/rootclingIO.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -78,26 +78,6 @@ static bool IsUnsupportedUniquePointer(const char *normName, TDataMember *dm)

if (!isUniquePtrOffsetZero) return true;

auto clm = TClass::GetClass(dmTypeName);
if (!clm) {
Error("CloseStreamerInfoROOTFile", "Class %s is not available.", dmTypeName);
return true;
}

// TODO: Is it not clear what situation we are checking for by checking if
// the unique_ptr class has any data members.
clm->BuildRealData(nullptr, /* istransient = */ true);
auto upDms = clm->GetListOfRealData();
if (!upDms) {
Error("CloseStreamerInfoROOTFile", "Cannot determine unique pointer %s data members.", dmTypeName);
return true;
}

if (0 == upDms->GetSize()) {
Error("CloseStreamerInfoROOTFile", "Unique pointer %s has zero data members.", dmTypeName);
return true;
}

// We check if the unique_ptr has a default deleter
std::vector<std::string> out;
int i;
Expand Down
Loading