|
Boost : |
Subject: Re: [boost] [parameter] type requirement compiler error
From: Daniel Wallin (daniel_at_[hidden])
Date: 2011-11-08 17:57:27
On Tue, Nov 8, 2011 at 11:21 PM, Lorenzo Caminiti <lorcaminiti_at_[hidden]> wrote:
> On Tue, Nov 8, 2011 at 9:29 AM, Daniel Wallin <daniel_at_[hidden]> wrote:
>> On Sun, Nov 6, 2011 at 8:12 PM, Lorenzo Caminiti <lorcaminiti_at_[hidden]> wrote:
> I see. Yes, this worked and I have listed below my original DFS
> example with this change which now compiles. Thank you very much!
Great!
>> Note that you need can't use:
>>
>> (vertex_descriptor<tag::graph::_>)
>>
>> because the library doesn't properly treat the predicate as a
>> metafunction in all the places that it should.
>
> Can this be fixed?
Yes, I commited a fix to trunk in r75415.
>>> A far as I can tell, there are two major issues here that should be
>>> fixed in Boost.Parameter:
>>> 1) The docs don't mention tag::xyz::_ at all, they refer to xyx_type
>>> which only works within the function definition and not in the
>>> function declaration.
>>
>> Yes, clearly a documentation bug.
>
> Yes, the docs don't mention how to use tag::xyz::_ at all (I even
> started to look at the source code and I understand some
> metaprogramming but still I had no clue what was going on). Could the
> doc examples also be tested by the regression tests to make sure they
> compile? (I will send another email with attached the source code of
> all the doc example that I reworked so they compile.)
Yep, updated the docs to test this in r75417.
-- Daniel Wallin BoostPro Computing http://www.boostpro.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk