|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r77441 - sandbox-branches/birbacher/propertymap-functormap/libs/property_map/test
From: frank.birbacher_at_[hidden]
Date: 2012-03-20 18:13:54
Author: birbacher
Date: 2012-03-20 18:13:53 EDT (Tue, 20 Mar 2012)
New Revision: 77441
URL: http://svn.boost.org/trac/boost/changeset/77441
Log:
Added concept check for new functor_property_map.
Test fails.
Text files modified:
sandbox-branches/birbacher/propertymap-functormap/libs/property_map/test/property_map_cc.cpp | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
Modified: sandbox-branches/birbacher/propertymap-functormap/libs/property_map/test/property_map_cc.cpp
==============================================================================
--- sandbox-branches/birbacher/propertymap-functormap/libs/property_map/test/property_map_cc.cpp (original)
+++ sandbox-branches/birbacher/propertymap-functormap/libs/property_map/test/property_map_cc.cpp 2012-03-20 18:13:53 EDT (Tue, 20 Mar 2012)
@@ -5,6 +5,7 @@
#include <boost/property_map/property_map.hpp>
#include <boost/property_map/shared_array_property_map.hpp>
+#include <boost/property_map/functor_property_map.hpp>
#include <map>
// This file checks the property map concepts against the property map
@@ -112,5 +113,12 @@
typedef shared_array_property_map<Value, IndexMap> PMap;
function_requires<Mutable_LvaluePropertyMapConcept<PMap, Key> >();
}
+ {
+ typedef sgi_assignable_archetype<> Key; // ?
+ typedef sgi_assignable_archetype<> Value;
+ typedef unary_function_archetype<Key, Value> FunctionObject;
+ typedef functor_property_map<FunctionObject, Key> PMap;
+ function_requires<ReadablePropertyMapConcept<PMap, Key> >();
+ }
return 0;
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk