Skip to content

would you like to support gcc 4.8.1?  #211

Description

@abc100m

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    solution: wontfixthe issue will not be fixed (either it is impossible or deemed out of scope)

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions