Skip to content

Commit

Permalink
Fix assert in ESRecordsToProxyIndices
Browse files Browse the repository at this point in the history
Was checking a collection which was moved rather than the one containing the information.
  • Loading branch information
Dr15Jones committed Oct 30, 2019
1 parent 9d4413e commit ad23eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FWCore/Framework/src/ESRecordsToProxyIndices.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
namespace edm::eventsetup {
ESRecordsToProxyIndices::ESRecordsToProxyIndices(std::vector<EventSetupRecordKey> iRecords)
: recordKeys_{std::move(iRecords)} {
assert(std::is_sorted(iRecords.begin(), iRecords.end()));
assert(std::is_sorted(recordKeys_.begin(), recordKeys_.end()));
recordOffsets_.reserve(recordKeys_.size() + 1);
recordOffsets_.push_back(0);
}
Expand Down

0 comments on commit ad23eb5

Please sign in to comment.