Boost logo

Boost-Commit :

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


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

Log:
Added test for property map of boost::function using reference return type.

Text files modified:
   sandbox-branches/birbacher/propertymap-functormap/libs/property_map/test/property_map_cc.cpp | 7 +++++++
   1 files changed, 7 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:38:23 EDT (Wed, 21 Mar 2012)
@@ -121,6 +121,13 @@
     typedef boost::function<Value(Key)> PMap;
     function_requires<ReadablePropertyMapConcept<PMap, Key> >();
   }
+ {
+ typedef sgi_assignable_archetype<> Key; // ?
+ typedef sgi_assignable_archetype<> Value;
+ //added reference:
+ 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