Skip Menu |

This queue is for tickets about the Boost-Graph CPAN distribution.

Report information
The Basics
Id: 73327
Status: new
Priority: 0/
Queue: Boost-Graph

Owner: Nobody in particular
Requestors: derhoermi [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: Boost::Graph patch for MSVC++ compatibility
Date: Sat, 17 Dec 2011 04:54:03 +0100
To: bug-boost-graph [...]
From: Bjoern Hoehrmann <derhoermi [...]>
Download (untitled) / with headers
text/plain 1.1k
Hi, Currently Boost::Graph hardcodes g++ as compiler. The attached patch has some crude logic that picks MSVC++ as compiler on Win32 systems. With that, the right, in my case anyway, compiler is used, but then there are a bunch of compilation problems, mostly relating to symbols that overlap between the Windows, C++ runtime, Boost, and Perl. I've re-ordered things and added some #undef instructions to work around. Then boost has two overloads, one with a `char` argument and one with the same argument as `bool`. In MSVC++ `bool` is a `char`, so it does not like that. I've commented that out. With all that, the module compiles and links, but the #53 test in `t/Graph.t` results in segmentation violation. Somehow the `_changed` member does not seem to be updated properly, if I change the method `BoostGraph_undirected_i<G>::connectedComponents()` so it also checks for `this->boostGraph` being null, all tests pass. I don't see what might be causing this. regards, -- Björn Höhrmann · · Am Badedeich 7 · Telefon: +49(0)160/4415681 · 25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 ·

Message body is not shown because sender requested not to inline it.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to