Boost logo

Boost Users :

Subject: Re: [Boost-users] [graph] How to find out at compile time if a graph has some concrete internal property?
From: Juan Antonio Farré Basurte (jafb_at_[hidden])
Date: 2009-03-17 03:54:01

>> I need to find a way to know at compile time if that graph has the internal
>> index property or not.
>> Is there any
(documented?) way to do it?
>> This is the concrete information I need right now, but, if possible,
>> I'd like to know how to
find out if the graph has any concrete internal
>> property, and not only the index one.
> I don't think
that this is really documented anywhere... You might look at
> pending/property.hpp - there are number of metafunctions there that might
> useful. Specifically, I think you'd be looking at property_value, which
> appears to extract a property from a property list.
This may "return"
> no_property if the requested kind is not supported.
> Andrew Sutton

Thanks a lot
for the hint, Andrew.
It's a pity there isn't a documented way. I consider it a useful feature.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at