Skip to content

Commit 79e101c

Browse files
committed
BuildCheck: std::pair is always unversioned
1 parent 819b4e3 commit 79e101c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

io/io/src/TStreamerInfo.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ void TStreamerInfo::BuildCheck(TFile *file /* = 0 */, Bool_t load /* = kTRUE */)
887887
else {
888888
// We are in the case of an 'emulated' class.
889889

890-
if (fOnFileClassVersion >= 2) {
890+
if (fOnFileClassVersion >= 2 && !isStdPair) {
891891
// The class version was specified when the object was
892892
// written
893893

@@ -952,7 +952,7 @@ void TStreamerInfo::BuildCheck(TFile *file /* = 0 */, Bool_t load /* = kTRUE */)
952952
// The TStreamerInfo's checksum is different from the checksum for the compile class.
953953

954954
match = kFALSE;
955-
oldIsNonVersioned = info->fOnFileClassVersion==1 && info->fClassVersion != 1;
955+
oldIsNonVersioned = (info->fOnFileClassVersion==1 && info->fClassVersion != 1) || isStdPair;
956956

957957
if (fClass->IsLoaded() && (fClassVersion == fClass->GetClassVersion()) && fClass->HasDataMemberInfo()) {
958958
// In the case where the read-in TStreamerInfo does not
@@ -1003,7 +1003,7 @@ void TStreamerInfo::BuildCheck(TFile *file /* = 0 */, Bool_t load /* = kTRUE */)
10031003
// The on-file TStreamerInfo's checksum differs from the checksum of a TStreamerInfo on another file.
10041004

10051005
match = kFALSE;
1006-
oldIsNonVersioned = info->fOnFileClassVersion==1 && info->fClassVersion != 1;
1006+
oldIsNonVersioned = (info->fOnFileClassVersion==1 && info->fClassVersion != 1) || isStdPair;
10071007

10081008
// In the case where the read-in TStreamerInfo does not
10091009
// match in the 'current' in memory TStreamerInfo for

0 commit comments

Comments
 (0)