Boost logo

Boost Users :

Subject: Re: [Boost-users] [graph][spirit][variant] Boost.Graph and Boost.Spirit incompatible ?
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2010-03-04 17:35:52


On Thu, 4 Mar 2010, Steven Watanabe wrote:

> AMDG
>
> Jeremiah Willcock wrote:
>> I looked at changing the key_type in get to something that would SFINAE out
>> and there isn't one: the farthest I could go is
>> property_traits<IndexMap>::value_type (key_type in the code is a bug), and
>> that class will fail to instantiate (non-SFINAE) on bad index map types.
>> That can be specialized, so I can't fall back to the default definition of
>> value_type inside it. I don't see a general-purpose solution to problem
>> right now.
>
> Would this break anything?
>
> template<typename PA>
> struct property_traits : PA {};

That plus changing two_bit_property_map to use it passes the BGL, PBGL,
and property_map test cases. Does it work to fix all of the known variant
problems?

-- Jeremiah Willcock


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net