Giter Club home page Giter Club logo

Comments (6)

jzmaddock avatar jzmaddock commented on August 11, 2024

@anadon : I've just filed a bunch of bug reports against examples that appear broken, and that I don't have time to debug/fix. Would you be able to take a look at any of these?
Hopefully not a "hospital pass"!

from graph.

deinst avatar deinst commented on August 11, 2024

The problem here is that bucket_sorter expects a property map as the ValueIndexMap. The code compiles and seems to work if we change the line

typedef trivial_id ID;

to

typedef boost::identity_property_map ID;

and add an include for property_map.

I'm not sure exactly what the interface should be. Is there any documentation?

from graph.

jzmaddock avatar jzmaddock commented on August 11, 2024

I'm not sure exactly what the interface should be. Is there any documentation?

Ugh, I suspect not - it's an example for boost/pending/bucket_sorter.hpp which is really an undocumented detail (albeit a possibly useful one).

So I guess we can either:

  1. Just remove it - seems a shame?
  2. Fix as you suggested above, and assuming it now builds and runs OK, just shrug and move on I guess.

Question: should it be boost/pending/bucket_sorter.hpp which adds that #include if a property map is a requirement of it's use?

from graph.

deinst avatar deinst commented on August 11, 2024

Question: should it be boost/pending/bucket_sorter.hpp which adds that #include if a property map > is a requirement of it's use?

As property map is a concept, not a type per se, I don't know if this is necessary. Things should work smoothly with any type that . We could add a

BOOST_CONCEPT_ASSERT ((ReadablePropertyMap<ValueIndexMap, ValueType>));

line to bucket_sorter.hpp (or something similar, I'm not yet comfortable with the boost concept macros).

At a higher level this class is more of a bucket_vector than a bucket_sorter as no sorting is done at all. It maintains a vector of buckets, nothing more. I suspect that this was an abandoned attempt at what later became boost/graph/planar_detail/bucket_sort.hpp.

I would vote to just remove it unfinished. We could call it bucket list first :)

from graph.

anadon avatar anadon commented on August 11, 2024

@deinst Thanks!

from graph.

hdu-sdlzx avatar hdu-sdlzx commented on August 11, 2024

Why not close this issue? @deinst @anadon @jzmaddock

from graph.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.