Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74788 - trunk/boost/fusion/sequence/intrinsic
From: joel_at_[hidden]
Date: 2011-10-07 23:47:17


Author: djowel
Date: 2011-10-07 23:47:16 EDT (Fri, 07 Oct 2011)
New Revision: 74788
URL: http://svn.boost.org/trac/boost/changeset/74788

Log:
Added adapter for std::tuple (only for implementations using variadic templates)
Text files modified:
   trunk/boost/fusion/sequence/intrinsic/at.hpp | 12 ++++++++----
   1 files changed, 8 insertions(+), 4 deletions(-)

Modified: trunk/boost/fusion/sequence/intrinsic/at.hpp
==============================================================================
--- trunk/boost/fusion/sequence/intrinsic/at.hpp (original)
+++ trunk/boost/fusion/sequence/intrinsic/at.hpp 2011-10-07 23:47:16 EDT (Fri, 07 Oct 2011)
@@ -1,7 +1,7 @@
 /*=============================================================================
     Copyright (c) 2001-2011 Joel de Guzman
 
- Distributed under the Boost Software License, Version 1.0. (See accompanying
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 ==============================================================================*/
 #if !defined(FUSION_AT_05042005_0722)
@@ -21,6 +21,7 @@
     struct boost_array_tag; // boost::array tag
     struct mpl_sequence_tag; // mpl sequence tag
     struct std_pair_tag; // std::pair tag
+ struct std_tuple_tag; // std::tuple tag
 
     namespace extension
     {
@@ -49,12 +50,15 @@
 
         template <>
         struct at_impl<std_pair_tag>;
+
+ template <>
+ struct at_impl<std_tuple_tag>;
     }
 
     namespace result_of
     {
         template <typename Sequence, typename N>
- struct at
+ struct at
             : extension::at_impl<typename detail::tag_of<Sequence>::type>::
                 template apply<Sequence, N>
         {};
@@ -67,7 +71,7 @@
 
 
     template <typename N, typename Sequence>
- inline typename
+ inline typename
         lazy_disable_if<
             is_const<Sequence>
           , result_of::at<Sequence, N>
@@ -85,7 +89,7 @@
     }
 
     template <int N, typename Sequence>
- inline typename
+ inline typename
         lazy_disable_if<
             is_const<Sequence>
           , result_of::at_c<Sequence, N>


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