Boost logo

Boost :

From: Yardumian, Hrant (HEYA) (HEYA_at_[hidden])
Date: 2001-04-04 12:16:26


Jeremy:

Thanks for your response. I have included all the files below. The most
relevant
ones are main.cpp, ColorTolerance.h and WeightTolerance.h. Boost typedefs
are
in GraphTypes.h. If you can't open these files please let me know and I
will send
them in a different form

The attached code will crash on MSVC++.

I should mention that related to filtered_graph, a colleague of mine made a
bugfix
in boost/iterator_adaptors.hpp. In class filter_iterator_generator, he
added public
before the BOOST_STATIC_CONSTANT line. The code was not even compiling
until that was done.

Please note that:
1) in main.cpp, in the bottom of the listing where the filtered graph is
created,
      if the commented out line is used instead, (with only an edge
predicate)
      then this code will work fine.
2) in ColorTolerance.h, if the commented out default constructor is used,
and
      the commented out code for operator() is used, the run will not crash,
but it will
      still not filter the graph appropriately.

 <<GraphTypes.h>> <<Output.h>> <<ColorTolerance.h>> <<printGraph.h>>
<<WeightTolerance.h>> <<main.cpp>> <<Output.cpp>> <<FilteredGraph.dsp>>
<<FilteredGraph.dsw>>

Hrant E. Yardumian
Chevron Petroleum Technology Co.
6001 Bollinger Canyon Rd. E-1192
San Ramon, CA 94583

Phone:(925) 842-6265
Fax :(925) 842-6283












Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk