mirror of
https://github.com/boostorg/graph.git
synced 2026-02-11 11:52:12 +00:00
fixed LvaluePropertyGraphConcept
[SVN r10136]
This commit is contained in:
@@ -395,15 +395,14 @@ namespace boost {
|
||||
struct LvaluePropertyGraphConcept
|
||||
{
|
||||
typedef typename property_map<G, Property>::type Map;
|
||||
typedef typename property_map<G, Property>::const_type const_Map;
|
||||
void constraints() {
|
||||
function_requires< ReadablePropertyGraphConcept<G, X, Property> >();
|
||||
function_requires< LvaluePropertyMapConcept<Map, X> >();
|
||||
function_requires< LvaluePropertyMapConcept<const_Map, X> >();
|
||||
function_requires< Mutable_LvaluePropertyMapConcept<Map, X> >();
|
||||
|
||||
Map pmap = get(Property(), g);
|
||||
pval = get(Property(), g, x);
|
||||
put(Property(), g, x, pval);
|
||||
ignore_unused_variable_warning(pmap);
|
||||
}
|
||||
G g;
|
||||
X x;
|
||||
|
||||
Reference in New Issue
Block a user