|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r70686 - sandbox/assign_v2/boost/assign/v2/conversion
From: erwann.rogard_at_[hidden]
Date: 2011-03-28 20:11:28
Author: e_r
Date: 2011-03-28 20:11:28 EDT (Mon, 28 Mar 2011)
New Revision: 70686
URL: http://svn.boost.org/trac/boost/changeset/70686
Log:
upd assign_v2
Text files modified:
sandbox/assign_v2/boost/assign/v2/conversion/deduce_tag.hpp | 19 +++++++++++++++++
sandbox/assign_v2/boost/assign/v2/conversion/helper.hpp | 43 ---------------------------------------
2 files changed, 20 insertions(+), 42 deletions(-)
Modified: sandbox/assign_v2/boost/assign/v2/conversion/deduce_tag.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/conversion/deduce_tag.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/conversion/deduce_tag.hpp 2011-03-28 20:11:28 EDT (Mon, 28 Mar 2011)
@@ -13,6 +13,7 @@
#include <boost/assign/v2/detail/traits/container.hpp>
#include <boost/assign/v2/conversion/helper.hpp>
#include <boost/assign/v2/conversion/predicate.hpp>
+#include <boost/mpl/bool.hpp>
#include <boost/mpl/or.hpp>
#include <boost/mpl/pair.hpp>
@@ -25,6 +26,24 @@
}// switch_tag
namespace conversion_aux{
+ // This is in replacement of switch_aux::helper since here we need
+ // two arguments.
+
+ template<typename T, typename U>
+ struct default_f : ::boost::mpl::true_{};
+
+ template<typename Tag,
+ template<typename, typename> class F = conversion_aux::default_f>
+ struct helper
+ {
+ typedef Tag tag;
+ template<typename T> // T must derive from mpl::pair<>
+ struct apply
+ : F<typename T::first, typename T::second>
+ {
+ };
+ };
+
template<typename C, typename R>
struct use_put : ::boost::mpl::or_<
container_aux::is_array<C>,
Modified: sandbox/assign_v2/boost/assign/v2/conversion/helper.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/conversion/helper.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/conversion/helper.hpp 2011-03-28 20:11:28 EDT (Mon, 28 Mar 2011)
@@ -1,42 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to 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) //
-//////////////////////////////////////////////////////////////////////////////
-#ifndef BOOST_ASSIGN_V2_CONVERSION_HELPER_ER_2010_HPP
-#define BOOST_ASSIGN_V2_CONVERSION_HELPER_ER_2010_HPP
-#include <boost/mpl/bool.hpp>
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace conversion_aux{
-
- // This is in replacement of switch_aux::helper since here we need
- // two arguments.
-
- template<typename T, typename U>
- struct default_f : ::boost::mpl::true_{};
-
- template<typename Tag,
- template<typename, typename> class F = conversion_aux::default_f>
- struct helper
- {
- typedef Tag tag;
- template<typename T> // T must derive from mpl::pair<>
- struct apply
- : F<typename T::first, typename T::second>
- {
- };
- };
-
-}// conversion_aux
-}// v2
-}// assign
-}// boost
-
-#endif // BOOST_ASSIGN_V2_CONVERSION_HELPER_ER_2010_HPP
+// TODO remove file
\ No newline at end of file
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