Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63024 - trunk/boost/mpl
From: eric_at_[hidden]
Date: 2010-06-16 13:57:41


Author: eric_niebler
Date: 2010-06-16 13:57:41 EDT (Wed, 16 Jun 2010)
New Revision: 63024
URL: http://svn.boost.org/trac/boost/changeset/63024

Log:
make mpl::string work with mpl::transform
Text files modified:
   trunk/boost/mpl/string.hpp | 48 ++++++++++++++++++++++++++++++++++++++++
   1 files changed, 48 insertions(+), 0 deletions(-)

Modified: trunk/boost/mpl/string.hpp
==============================================================================
--- trunk/boost/mpl/string.hpp (original)
+++ trunk/boost/mpl/string.hpp 2010-06-16 13:57:41 EDT (Wed, 16 Jun 2010)
@@ -241,6 +241,18 @@
     };
 
     template<typename Tag>
+ struct has_push_back_impl;
+
+ template<>
+ struct has_push_back_impl<mpl::string_tag>
+ {
+ template<typename Sequence>
+ struct apply
+ : mpl::true_
+ {};
+ };
+
+ template<typename Tag>
     struct pop_back_impl;
 
     template<>
@@ -268,6 +280,18 @@
     };
 
     template<typename Tag>
+ struct has_pop_back_impl;
+
+ template<>
+ struct has_pop_back_impl<mpl::string_tag>
+ {
+ template<typename Sequence>
+ struct apply
+ : mpl::true_
+ {};
+ };
+
+ template<typename Tag>
     struct push_front_impl;
 
     template<>
@@ -342,6 +366,18 @@
     };
 
     template<typename Tag>
+ struct has_push_front_impl;
+
+ template<>
+ struct has_push_front_impl<mpl::string_tag>
+ {
+ template<typename Sequence>
+ struct apply
+ : mpl::true_
+ {};
+ };
+
+ template<typename Tag>
     struct pop_front_impl;
 
     template<>
@@ -376,6 +412,18 @@
     };
 
     template<typename Tag>
+ struct has_pop_front_impl;
+
+ template<>
+ struct has_pop_front_impl<mpl::string_tag>
+ {
+ template<typename Sequence>
+ struct apply
+ : mpl::true_
+ {};
+ };
+
+ template<typename Tag>
     struct insert_range_impl;
 
     template<>


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