Boost logo

Boost-Commit :

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


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

Log:
Added test for boost::function1 as property map.

Text files modified:
   sandbox-branches/birbacher/propertymap-functormap/libs/property_map/test/property_map_cc.cpp | 15 +++++++++++++++
   1 files changed, 15 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:41:28 EDT (Wed, 21 Mar 2012)
@@ -115,6 +115,7 @@
     function_requires<Mutable_LvaluePropertyMapConcept<PMap, Key> >();
   }
 #if !defined(BOOST_FUNCTION_NO_FUNCTION_TYPE_SYNTAX)
+ // Preferred syntax
   {
     typedef sgi_assignable_archetype<> Key; // ?
     typedef sgi_assignable_archetype<> Value;
@@ -129,6 +130,20 @@
     function_requires<ReadablePropertyMapConcept<PMap, Key> >();
   }
 #endif // have partial specialization
+ // Portable syntax
+ {
+ typedef sgi_assignable_archetype<> Key; // ?
+ typedef sgi_assignable_archetype<> Value;
+ typedef boost::function1<Value, Key> PMap;
+ function_requires<ReadablePropertyMapConcept<PMap, Key> >();
+ }
+ {
+ typedef sgi_assignable_archetype<> Key; // ?
+ typedef sgi_assignable_archetype<> Value;
+ //added reference:
+ typedef boost::function1<Value&, Key> PMap;
+ function_requires<ReadablePropertyMapConcept<PMap, Key> >();
+ }
   /*
    * 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