Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70501 - in sandbox/assign_v2/boost/assign/v2: . conversion utility utility/conversion
From: erwann.rogard_at_[hidden]
Date: 2011-03-24 12:22:05


Author: e_r
Date: 2011-03-24 12:22:04 EDT (Thu, 24 Mar 2011)
New Revision: 70501
URL: http://svn.boost.org/trac/boost/changeset/70501

Log:
upd assign_v2
Added:
   sandbox/assign_v2/boost/assign/v2/conversion/
      - copied from r70499, /sandbox/assign_v2/boost/assign/v2/utility/conversion/
   sandbox/assign_v2/boost/assign/v2/conversion.hpp
      - copied unchanged from r70499, /sandbox/assign_v2/boost/assign/v2/utility/conversion.hpp
   sandbox/assign_v2/boost/assign/v2/csv.hpp
      - copied unchanged from r70499, /sandbox/assign_v2/boost/assign/v2/utility/csv.hpp
Removed:
   sandbox/assign_v2/boost/assign/v2/utility/conversion/
   sandbox/assign_v2/boost/assign/v2/utility/conversion.hpp
   sandbox/assign_v2/boost/assign/v2/utility/csv.hpp

Deleted: sandbox/assign_v2/boost/assign/v2/utility/conversion.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/utility/conversion.hpp 2011-03-24 12:22:04 EDT (Thu, 24 Mar 2011)
+++ (empty file)
@@ -1,15 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////
-// 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_UTILITY_CONVERSION_ER_2010_HPP
-#define BOOST_ASSIGN_V2_UTILITY_CONVERSION_ER_2010_HPP
-#include <boost/assign/v2/utility/conversion/convert.hpp>
-#include <boost/assign/v2/utility/conversion/converter.hpp>
-
-#endif

Deleted: sandbox/assign_v2/boost/assign/v2/utility/csv.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/utility/csv.hpp 2011-03-24 12:22:04 EDT (Thu, 24 Mar 2011)
+++ (empty file)
@@ -1,145 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////
-// 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_UTILITY_CSV_ER_2010_HPP
-#define BOOST_ASSIGN_V2_UTILITY_CSV_ER_2010_HPP
-#include <boost/assign/v2/detail/config/enable_cpp0x.hpp>
-#include <boost/assign/v2/detail/pp/ignore.hpp>
-#include <boost/config.hpp>
-#include <boost/typeof/typeof.hpp>
-#include <boost/mpl/apply.hpp>
-#include <boost/mpl/fold.hpp>
-#include <boost/mpl/placeholders.hpp>
-#include <boost/mpl/vector.hpp>
-#include <boost/mpl/vector/vector0.hpp>
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-#include <utility>
-#include <boost/assign/v2/temporary/variadic_vector.hpp>
-#else
-#include <boost/assign/v2/detail/config/limit_csv_arity.hpp>
-#include <boost/preprocessor/cat.hpp>
-#include <boost/preprocessor/repetition.hpp>
-#endif // BOOST_ASSIGN_V2_ENABLE_CPP0X
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace csv_aux{
-
- template<typename F, typename T>
- struct unary_result
- {
- static F f;
- static T t;
-#ifdef BOOST_MSVC
- BOOST_TYPEOF_NESTED_TYPEDEF_TPL(nested, f( t ) )
- typedef typename nested::type type;
-#else
- typedef BOOST_TYPEOF_TPL( f( t ) ) type;
-#endif
-
- };
-
- template<typename F>
- struct result
- {
-
- typedef F state_;
-
- template<typename Vec>
- struct apply : ::boost::mpl::fold<
- Vec,
- state_,
- unary_result< ::boost::mpl::_1, ::boost::mpl::_2>
- >{};
-
- };
-
-}// csv_aux
-//[syntax_utility_csv
-namespace result_of{
-
- template<typename F, typename V>
- struct csv/*<-*/
- : ::boost::mpl::apply1<
- csv_aux::result<F>,
- V
- >
- {}/*->*/;
-
-}// nth_result_of
-//<-
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-//->
-
- template<typename F>
- typename result_of::csv<F const&,
- ::boost::mpl::vector0<>
- >::type
- csv( F const& functor)/*<-*/
- {
- return functor;
- }BOOST_ASSIGN_V2_IGNORE(/*->*/;/*<-*/)/*->*/
-
- template<typename F, typename T, typename... Args>
- typename result_of::csv<F const&,
- typename ::boost::mpl::detail::variadic_vector<T, Args...>::type
- >::type
- csv( F const& functor, T&& t, Args&&... args )/*<-*/
- {
- return csv( functor( t ), std::forward<Args>( args )... );
- }BOOST_ASSIGN_V2_IGNORE(/*->*/;/*<-*/)/*->*/
-
-//]
-#else
-#define BOOST_ASSIGN_V2_MACRO1(z, i, data) BOOST_PP_CAT(T, i) data
-#define BOOST_ASSIGN_V2_MACRO2(z, i, data) ( BOOST_PP_CAT(_, i) )
-#define BOOST_ASSIGN_V2_MACRO3(z, N, data)\
-\
- template<typename F BOOST_PP_ENUM_TRAILING_PARAMS(N, typename T)>\
- typename result_of::csv<F const&, \
- ::boost::mpl::vector<BOOST_PP_ENUM(N, BOOST_ASSIGN_V2_MACRO1, &)>\
- >::type\
- csv( \
- F const& functor\
- BOOST_PP_ENUM_TRAILING_BINARY_PARAMS(N, T, & _)\
- )\
- {\
- return functor BOOST_PP_REPEAT(N, BOOST_ASSIGN_V2_MACRO2, ~ );\
- }\
-\
- template<typename F BOOST_PP_ENUM_TRAILING_PARAMS(N, typename T)>\
- typename result_of::csv<F const&,\
- ::boost::mpl::vector<BOOST_PP_ENUM(N, BOOST_ASSIGN_V2_MACRO1, const &)>\
- >::type\
- csv( \
- F const& functor\
- BOOST_PP_ENUM_TRAILING_BINARY_PARAMS(N, T, const & _)\
- )\
- {\
- return functor BOOST_PP_REPEAT(N, BOOST_ASSIGN_V2_MACRO2, ~ );\
- }\
-\
-/**/
-BOOST_PP_REPEAT_FROM_TO(
- 1,
- BOOST_PP_INC(BOOST_ASSIGN_V2_LIMIT_CSV_ARITY),
- BOOST_ASSIGN_V2_MACRO3,
- ~
-)
-#undef BOOST_ASSIGN_V2_MACRO1
-#undef BOOST_ASSIGN_V2_MACRO2
-#undef BOOST_ASSIGN_V2_MACRO3
-#endif // BOOST_ASSIGN_V2_ENABLE_CPP0X
-
-}// v2
-}// assign
-}// boost
-
-#endif // BOOST_ASSIGN_V2_UTILITY_CSV_ER_2010_HPP


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