Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77463 - sandbox-branches/birbacher/propertymap-functormap/libs/property_map/test
From: frank.birbacher_at_[hidden]
Date: 2012-03-21 18:28:52


Author: birbacher
Date: 2012-03-21 18:28:52 EDT (Wed, 21 Mar 2012)
New Revision: 77463
URL: http://svn.boost.org/trac/boost/changeset/77463

Log:
Test for boost::function as property map.

Text files modified:
   sandbox-branches/birbacher/propertymap-functormap/libs/property_map/test/property_map_cc.cpp | 9 +++++++++
   1 files changed, 9 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-21 18:28:52 EDT (Wed, 21 Mar 2012)
@@ -6,6 +6,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 <boost/function.hpp>
 #include <map>
 
 // This file checks the property map concepts against the property map
@@ -113,6 +114,14 @@
     typedef shared_array_property_map<Value, IndexMap> PMap;
     function_requires<Mutable_LvaluePropertyMapConcept<PMap, Key> >();
   }
+#if !defined(BOOST_FUNCTION_NO_FUNCTION_TYPE_SYNTAX)
+ {
+ typedef sgi_assignable_archetype<> Key; // ?
+ typedef sgi_assignable_archetype<> Value;
+ typedef boost::function<Value(Key)> PMap;
+ function_requires<ReadablePropertyMapConcept<PMap, Key> >();
+ }
+#endif // have partial specialization
   /*
    * postpone implementation
   {


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