Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85426 - in branches/release: . boost boost/fusion boost/fusion/container/map
From: eric_at_[hidden]
Date: 2013-08-22 15:45:30


Author: eric_niebler
Date: 2013-08-22 15:45:30 EDT (Thu, 22 Aug 2013)
New Revision: 85426
URL: http://svn.boost.org/trac/boost/changeset/85426

Log:
merge [84937] from trunk, fixes #8759

Properties modified:
   branches/release/ (props changed)
   branches/release/boost/ (props changed)
   branches/release/boost/fusion/ (props changed)
Text files modified:
   branches/release/boost/fusion/container/map/convert.hpp | 24 ++++++++++++++++++++++++
   1 files changed, 24 insertions(+), 0 deletions(-)

Modified: branches/release/boost/fusion/container/map/convert.hpp
==============================================================================
--- branches/release/boost/fusion/container/map/convert.hpp Thu Aug 22 15:43:09 2013 (r85425)
+++ branches/release/boost/fusion/container/map/convert.hpp 2013-08-22 15:45:30 EDT (Thu, 22 Aug 2013) (r85426)
@@ -42,6 +42,30 @@
         typedef typename result_of::as_map<Sequence const>::gen gen;
         return gen::call(fusion::begin(seq));
     }
+
+ namespace extension
+ {
+ template <typename T>
+ struct convert_impl;
+
+ template <>
+ struct convert_impl<map_tag>
+ {
+ template <typename Sequence>
+ struct apply
+ {
+ typedef typename
+ result_of::as_map<Sequence>::type
+ type;
+
+ static type call(Sequence& seq)
+ {
+ typedef result_of::as_map<Sequence> gen;
+ return gen::call(fusion::begin(seq), fusion::end(seq));
+ }
+ };
+ };
+ }
 }}
 
 #endif


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