-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Closed
Labels
solution: wontfixthe issue will not be fixed (either it is impossible or deemed out of scope)the issue will not be fixed (either it is impossible or deemed out of scope)
Description
our machine which installed centos has gcc 4.8.1 installed, and it's hardly to upgrade to gcc 4.9. so, would you like to have a work round to support for gcc 4.8.1?
for example, work round for bug 55817 of gcc 4.8 :
/*
result.m_it.array_iterator = m_value.array->insert(pos.m_it.array_iterator, ilist);
*/
#if __GNUC__ == 4 && __GNUC_MINOR__ == 8
auto insert_pos = std::distance(m_value.array->begin(), pos.m_it.array_iterator);
m_value.array->insert(pos.m_it.array_iterator, ilist);
result.m_it.array_iterator = m_value.array->begin() + insert_pos;
#else
result.m_it.array_iterator = m_value.array->insert(pos.m_it.array_iterator, ilist);
#endif
Metadata
Metadata
Assignees
Labels
solution: wontfixthe issue will not be fixed (either it is impossible or deemed out of scope)the issue will not be fixed (either it is impossible or deemed out of scope)