diff --git a/indexer/indexer_tool/statistics.hpp b/indexer/indexer_tool/statistics.hpp index e9d2ea2ae3..73e6b40590 100644 --- a/indexer/indexer_tool/statistics.hpp +++ b/indexer/indexer_tool/statistics.hpp @@ -60,7 +60,9 @@ namespace stats template void AddToSet(TKey key, uint32_t sz, TSet & theSet) { - theSet.insert(GeneralInfoKey(key)).first->m_info.Add(sz); + // GCC doesn't allow to modify set value ... + const_cast( + theSet.insert(GeneralInfoKey(key)).first->m_info).Add(sz); } };