Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would you like to modify the boost::container::flat_set<size_t> to std::vector? #36

Open
zhangfq-chemistry opened this issue Jun 24, 2021 · 2 comments

Comments

@zhangfq-chemistry
Copy link

I do not install boost under windows. Would you please to slightly change the Adjacency from boost to stl? Thanks a lot!

@stuarteberg
Copy link
Member

Would you like to modify the boost::container::flat_set<size_t> to std::vector?

No, flat_set is not equivalent to vector, so that wouldn't work in this case. Perhaps std::set would work, but that would likely be much slower than flat_set for this use-case.

I do not install boost under windows.

In this case, the installation should be trivial. boost::container is a header-only library, so there is no need to compile anything. Just put the library's source code in a directory your compiler will search when looking for header files.

@DerThorsten
Copy link
Contributor

@stuarteberg years ago I wrote flat set on my own for OpenGM which was conserved / polished by @bjoern-andres

https://github.com/bjoern-andres/random-access-set/blob/master/include/andres/random-access-set.hxx

We might want to use that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants