[graph] property_value no longer valid for bgl_named_parameters

The transition from Boost 1.49 to 1.51 gave me a breaking change in the graph library: Originally I used the property_value struct to get the type of a named parameter, like this: property_value<bgl_params, Tag>::type; This no longer works and the current use seems to be: get_param_type<Tag, bgl_params>::type; Is this a regression? Or was I just using the library in the wrong way? Thanks, Alex

On Tue, 4 Sep 2012, Alex Hagen-Zanker wrote:
The transition from Boost 1.49 to 1.51 gave me a breaking change in the graph library:
Originally I used the property_value struct to get the type of a named parameter, like this: property_value<bgl_params, Tag>::type;
This no longer works and the current use seems to be: get_param_type<Tag, bgl_params>::type;
Is this a regression? Or was I just using the library in the wrong way?
I refactored things so that named parameters and properties don't use the same mechanisms, so property_value will only work on properties now. You should use get_param() and get_param_type for named parameters. -- Jeremiah Willcock
participants (2)
-
Alex Hagen-Zanker
-
Jeremiah Willcock