Skip to content

Remove all std::vector<bool> from HiGHS #3189

Description

@jajhall

std::vector<bool> is not thread-safe

See https://en.cppreference.com/cpp/container/vector_bool: "Does not guarantee that different elements in the same container can be modified concurrently by different threads"). std::vector<T> for any other T is thread safe.

and this has been an issue with sanitizers and #3025.

It would be good to eventually get rid of all instances and replace them with std::vector<char> or std::vector<uint8_t>

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions