Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82670 - trunk/boost/fusion/container/deque
From: joel_at_[hidden]
Date: 2013-02-06 20:23:44


Author: djowel
Date: 2013-01-31 10:56:00 EST (Thu, 31 Jan 2013)
New Revision: 82670
URL: http://svn.boost.org/trac/boost/changeset/82670

Log:
cleanup
Text files modified:
   trunk/boost/fusion/container/deque/convert.hpp | 17 ++++++++++++++++-
   1 files changed, 16 insertions(+), 1 deletions(-)

Modified: trunk/boost/fusion/container/deque/convert.hpp
==============================================================================
--- trunk/boost/fusion/container/deque/convert.hpp (original)
+++ trunk/boost/fusion/container/deque/convert.hpp 2013-01-31 10:56:00 EST (Thu, 31 Jan 2013)
@@ -46,6 +46,18 @@
         template <typename T, typename Rest>
         struct push_front_deque;
 
+ template <typename T>
+ struct push_front_deque<T, deque<>>
+ {
+ typedef deque<T> type;
+
+ static type
+ call(T const& first, deque<>)
+ {
+ return type(first);
+ }
+ };
+
         template <typename T, typename ...Rest>
         struct push_front_deque<T, deque<Rest...>>
         {
@@ -54,7 +66,10 @@
             static type
             call(T const& first, deque<Rest...> const& rest)
             {
- return type(front_extended_deque<deque<Rest...>, T>(rest, first));
+ typedef
+ front_extended_deque<deque<Rest...>, T>
+ front_extended;
+ return type(front_extended(rest, first));
             }
         };
 


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