Skip to content

Commit eff7e77

Browse files
authored
[ML] Fix compilation errors in debug build (#2849)
Adjust TRACE statements - that are only active when assertions are enabled - to resolve compilation errors in debug builds.
1 parent 66ed0f3 commit eff7e77

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/model/unittest/CMetricPopulationDataGathererTest.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ BOOST_FIXTURE_TEST_CASE(testRemovePeople, CTestFixture) {
716716
gatherer.attributeName(j.first.second);
717717
expectedFeatureData.emplace_back(key, j.second);
718718
LOG_TRACE(<< " " << key);
719-
LOG_TRACE(<< " " << data[j].second.print());
719+
LOG_TRACE(<< " " << j.second.print());
720720
}
721721
}
722722
}
@@ -755,7 +755,7 @@ BOOST_FIXTURE_TEST_CASE(testRemovePeople, CTestFixture) {
755755
gatherer.attributeName(j.first.second);
756756
actualFeatureData.emplace_back(key, j.second);
757757
LOG_TRACE(<< " " << key);
758-
LOG_TRACE(<< " " << data[j].second.print());
758+
LOG_TRACE(<< " " << j.second.print());
759759
}
760760
}
761761
}
@@ -836,7 +836,7 @@ BOOST_FIXTURE_TEST_CASE(testRemoveAttributes, CTestFixture) {
836836
gatherer.attributeName(j.first.second);
837837
expected.emplace_back(key, j.second);
838838
LOG_TRACE(<< " " << key);
839-
LOG_TRACE(<< " " << data[j].second.print());
839+
LOG_TRACE(<< " " << j.second.print());
840840
}
841841
}
842842
}
@@ -874,7 +874,7 @@ BOOST_FIXTURE_TEST_CASE(testRemoveAttributes, CTestFixture) {
874874
gatherer.attributeName(j.first.second);
875875
actual.emplace_back(key, j.second);
876876
LOG_TRACE(<< " " << key);
877-
LOG_TRACE(<< " " << data[j].second.print());
877+
LOG_TRACE(<< " " << j.second.print());
878878
}
879879
}
880880
actualFeatureData = core::CContainerPrinter::print(actual);

0 commit comments

Comments
 (0)