Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77805 - trunk/boost/fusion/container/deque
From: joel_at_[hidden]
Date: 2012-04-07 03:54:19


Author: djowel
Date: 2012-04-07 03:54:18 EDT (Sat, 07 Apr 2012)
New Revision: 77805
URL: http://svn.boost.org/trac/boost/changeset/77805

Log:
partial update (upgrade to c++11)
Added:
   trunk/boost/fusion/container/deque/deque.hpp (contents, props changed)
   trunk/boost/fusion/container/deque/deque_fwd.hpp (contents, props changed)
Text files modified:
   trunk/boost/fusion/container/deque/back_extended_deque.hpp | 12 ++++++++++++
   trunk/boost/fusion/container/deque/front_extended_deque.hpp | 12 ++++++++++++
   2 files changed, 24 insertions(+), 0 deletions(-)

Modified: trunk/boost/fusion/container/deque/back_extended_deque.hpp
==============================================================================
--- trunk/boost/fusion/container/deque/back_extended_deque.hpp (original)
+++ trunk/boost/fusion/container/deque/back_extended_deque.hpp 2012-04-07 03:54:18 EDT (Sat, 07 Apr 2012)
@@ -29,6 +29,18 @@
         back_extended_deque(Deque const& deque, Arg const& val)
           : base(val, deque)
         {}
+
+#if defined(BOOST_NO_RVALUE_REFERENCES)
+ template <typename Arg>
+ back_extended_deque(Deque const& deque, Arg& val)
+ : base(val, deque)
+ {}
+#else
+ template <typename Arg>
+ back_extended_deque(Deque const& deque, Arg&& val)
+ : base(std::forward<Arg>(val), deque)
+ {}
+#endif
     };
 }}
 

Added: trunk/boost/fusion/container/deque/deque.hpp
==============================================================================
--- (empty file)
+++ trunk/boost/fusion/container/deque/deque.hpp 2012-04-07 03:54:18 EDT (Sat, 07 Apr 2012)
@@ -0,0 +1,19 @@
+/*=============================================================================
+ Copyright (c) 2005-2012 Joel de Guzman
+ Copyright (c) 2005-2006 Dan Marsden
+
+ 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(BOOST_FUSION_DEQUE_26112006_1649)
+#define BOOST_FUSION_DEQUE_26112006_1649
+
+#if (defined(BOOST_NO_DECLTYPE) \
+ || defined(BOOST_NO_VARIADIC_TEMPLATES) \
+ || defined(BOOST_NO_RVALUE_REFERENCES))
+# include <boost/fusion/container/deque/cpp03_deque.hpp>
+#else
+# include <boost/fusion/container/deque/cpp03_deque.hpp>
+#endif
+
+#endif

Added: trunk/boost/fusion/container/deque/deque_fwd.hpp
==============================================================================
--- (empty file)
+++ trunk/boost/fusion/container/deque/deque_fwd.hpp 2012-04-07 03:54:18 EDT (Sat, 07 Apr 2012)
@@ -0,0 +1,21 @@
+/*=============================================================================
+ Copyright (c) 2005-2012 Joel de Guzman
+ Copyright (c) 2005-2007 Dan Marsden
+
+ 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_DEQUE_FORWARD_02092007_0749)
+#define FUSION_DEQUE_FORWARD_02092007_0749
+
+#include <boost/config.hpp>
+
+#if (defined(BOOST_NO_DECLTYPE) \
+ || defined(BOOST_NO_VARIADIC_TEMPLATES) \
+ || defined(BOOST_NO_RVALUE_REFERENCES))
+# include <boost/fusion/container/deque/cpp03_deque_fwd.hpp>
+#else
+# include <boost/fusion/container/deque/cpp03_deque_fwd.hpp>
+#endif
+
+#endif

Modified: trunk/boost/fusion/container/deque/front_extended_deque.hpp
==============================================================================
--- trunk/boost/fusion/container/deque/front_extended_deque.hpp (original)
+++ trunk/boost/fusion/container/deque/front_extended_deque.hpp 2012-04-07 03:54:18 EDT (Sat, 07 Apr 2012)
@@ -29,6 +29,18 @@
         front_extended_deque(Deque const& deque, Arg const& val)
           : base(val, deque)
         {}
+
+#if defined(BOOST_NO_RVALUE_REFERENCES)
+ template <typename Arg>
+ front_extended_deque(Deque const& deque, Arg& val)
+ : base(val, deque)
+ {}
+#else
+ template <typename Arg>
+ front_extended_deque(Deque const& deque, Arg&& val)
+ : base(std::forward<Arg>(val), deque)
+ {}
+#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