From 9ebb6fb4b9bac27287dd05e57f642d8084e3a2f8 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Sun, 9 Jan 2011 04:49:10 +0200 Subject: [PATCH] GCC build fix --- indexer/indexer_tool/statistics.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } };