|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r69807 - in sandbox/assign_v2: boost/assign/v2/ref/list libs/assign/v2/test/ref
From: erwann.rogard_at_[hidden]
Date: 2011-03-09 16:47:01
Author: e_r
Date: 2011-03-09 16:47:00 EST (Wed, 09 Mar 2011)
New Revision: 69807
URL: http://svn.boost.org/trac/boost/changeset/69807
Log:
upd assign_v2
Text files modified:
sandbox/assign_v2/boost/assign/v2/ref/list/at.hpp | 20 ++++++--------------
sandbox/assign_v2/libs/assign/v2/test/ref/convert_traits.cpp | 11 -----------
2 files changed, 6 insertions(+), 25 deletions(-)
Modified: sandbox/assign_v2/boost/assign/v2/ref/list/at.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/list/at.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/list/at.hpp 2011-03-09 16:47:00 EST (Wed, 09 Mar 2011)
@@ -27,21 +27,17 @@
struct is_head :
::boost::mpl::bool_<I + 1 == T::static_size::value>{};
-namespace result_of{
-
template<size_type I, typename T>
- struct at : ::boost::mpl::eval_if<
+ struct at_list : ::boost::mpl::eval_if<
list_aux::is_head<I, T>
,head_reference<T>
- ,result_of::at<I, typename tail_of<T>::type>
+ ,at_list<I, typename tail_of<T>::type>
>{};
-}// result_of
-
template<size_type I, typename T>
typename boost::lazy_enable_if<
list_aux::is_head<I, T>,
- list_aux::result_of::at<I, T>
+ list_aux::at_list<I, T>
>::type
at_helper(T const& t)
{
@@ -51,7 +47,7 @@
template<size_type I, typename T>
typename boost::lazy_disable_if<
is_head<I, T>,
- list_aux::result_of::at<I, T>
+ list_aux::at_list<I, T>
>::type
at_helper(T const& t)
{
@@ -59,7 +55,7 @@
}
template<size_type I, typename Tag, typename H, typename T>
- typename list_aux::result_of::at<I, container<Tag, H, T> >::type
+ typename list_aux::at_list<I, container<Tag, H, T> >::type
at(container<Tag, H, T> const& t)
{
return at_helper<I>( t );
@@ -67,14 +63,10 @@
}// list_aux
using list_aux::at;
-namespace result_of{
-
- // TODO rename at_list
template<list_aux::size_type I, typename T>
- struct at : list_aux::result_of::at<I, T>{};
+ struct list_at : list_aux::at_list<I, T>{};
-}// result_of
}// ref
}// v2
}// assign
Modified: sandbox/assign_v2/libs/assign/v2/test/ref/convert_traits.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/ref/convert_traits.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/ref/convert_traits.cpp 2011-03-09 16:47:00 EST (Wed, 09 Mar 2011)
@@ -21,17 +21,6 @@
{
ns::same_value_type::do_check<int>();
}
-// TODO, possible extension
-/*
- {
- namespace dv = ns::distinct_values;
- namespace ari = dv::arithmetic;
- ari::do_check<short>();
- ari::do_check<int>();
- ari::do_check<float>();
- ari::do_check<double>();
- }
-*/
}
}// convert_traits
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