Boost logo

Boost :

Subject: Re: [boost] [graph] msvc compile failure with filtered_graph and dijkstra
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2012-10-08 16:05:30


On Mon, 8 Oct 2012, Jürgen Hunold wrote:

> Hi,
>
> some of our old graph algorithm seems to have broken using msvc with 1.51. The
> failure can be reproduced with the attached testcase on trunk and 1.51.
>
> The error starts with
>
> E:\Home\hunold\src\devel\boost\boost/graph/properties.hpp(222) : error C2039:
> 'type' : is not a member of 'boost::vertex_property_type<G>'
>
> which point in the direction of the last changes to properties.hpp.
> The test code break with msvc-9.0 (full error included) and msvc-11.0.
> Everything compiles with gcc-4.6.2 on Kubuntu 12.04 and mingw-w64.
>
> Any ideas what msvc does not grok here?

It looks like VC++ isn't able to deduce that when calling:

template <typename G>
... const G& ...

that G should not be a const-qualified type. Please check if trunk
version 80908 works for you (I don't have an easy way to test on Visual
C++).

-- Jeremiah Willcock


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