Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66862 - in sandbox/statistics/support/boost/assign/v2/chain: checking traits
From: erwann.rogard_at_[hidden]
Date: 2010-11-29 18:29:32


Author: e_r
Date: 2010-11-29 18:29:30 EST (Mon, 29 Nov 2010)
New Revision: 66862
URL: http://svn.boost.org/trac/boost/changeset/66862

Log:
sml upd to boost/assign/v2
Text files modified:
   sandbox/statistics/support/boost/assign/v2/chain/checking/distinct_values.hpp | 64 ++++++++++++++++++++--------------------
   sandbox/statistics/support/boost/assign/v2/chain/traits/iterator.hpp | 2
   sandbox/statistics/support/boost/assign/v2/chain/traits/use_lvalue.hpp | 2 -
   3 files changed, 33 insertions(+), 35 deletions(-)

Modified: sandbox/statistics/support/boost/assign/v2/chain/checking/distinct_values.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/chain/checking/distinct_values.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/chain/checking/distinct_values.hpp 2010-11-29 18:29:30 EST (Mon, 29 Nov 2010)
@@ -26,42 +26,42 @@
 // If the value types of the two ranges differ, their references must be
 // converted to value_type. In particular, lvalue cannot be preserved.
 
-#define m(T1,T2) \
- template<typename T> \
- void do_check(typename boost::enable_if<boost::is_same<T,T1> >::type* = 0) \
- { \
- typedef T1 t1_; \
- typedef T2 t2_; \
- typedef std::vector<T1> vec1_; \
- typedef std::vector<T2> vec2_; \
- vec1_ vec1, vec3; \
- vec2_ vec2; \
- { \
- namespace ns = v2::checking::constants; \
- vec1.push_back( ns::a ); \
- vec1.push_back( ns::b ); \
- vec2.push_back( ns::c ); \
- vec2.push_back( ns::d ); \
- vec2.push_back( ns::e ); \
- vec3.push_back( ns::f ); \
- vec3.push_back( ns::g ); \
- vec3.push_back( ns::h ); \
- } \
- namespace chk = checking::container; \
- { \
- using namespace adaptor; \
- chk::do_check( vec1 | _chain( vec2 ) | _chain( vec3 ) ); \
- } \
- } \
+#define MACRO(T1,T2)\
+ template<typename T>\
+ void do_check(typename boost::enable_if<boost::is_same<T,T1> >::type* = 0)\
+ {\
+ typedef T1 t1_;\
+ typedef T2 t2_;\
+ typedef std::vector<T1> vec1_;\
+ typedef std::vector<T2> vec2_;\
+ vec1_ vec1, vec3;\
+ vec2_ vec2;\
+ {\
+ namespace ns = v2::checking::constants;\
+ vec1.push_back( ns::a );\
+ vec1.push_back( ns::b );\
+ vec2.push_back( ns::c );\
+ vec2.push_back( ns::d );\
+ vec2.push_back( ns::e );\
+ vec3.push_back( ns::f );\
+ vec3.push_back( ns::g );\
+ vec3.push_back( ns::h );\
+ }\
+ namespace chk = checking::container;\
+ {\
+ using namespace adaptor;\
+ chk::do_check( vec1 | _chain( vec2 ) | _chain( vec3 ) );\
+ }\
+ }\
 /**/
 
 
-m(short , int)
-m(int , long)
-m(float , double)
-m(double , long double)
+MACRO(short , int)
+MACRO(int , long)
+MACRO(float , double)
+MACRO(double , long double)
 
-#undef m
+#undef MACRO
 
 }// distinct_values
 }// chain

Modified: sandbox/statistics/support/boost/assign/v2/chain/traits/iterator.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/chain/traits/iterator.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/chain/traits/iterator.hpp 2010-11-29 18:29:30 EST (Mon, 29 Nov 2010)
@@ -12,7 +12,7 @@
 #include <boost/mpl/apply.hpp>
 #include <boost/type_traits/remove_reference.hpp>
 #include <boost/iterator/iterator_traits.hpp>
-#include <boost/assign/v2/temporary/chain_iterator.hpp> // TODO temporary
+#include <boost/assign/v2/temporary/chain_iterator.hpp>
 #include <boost/range/detail/demote_iterator_traversal_tag.hpp>
 #include <boost/assign/v2/detail/type_traits/meta_convert.hpp>
 

Modified: sandbox/statistics/support/boost/assign/v2/chain/traits/use_lvalue.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/chain/traits/use_lvalue.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/chain/traits/use_lvalue.hpp 2010-11-29 18:29:30 EST (Mon, 29 Nov 2010)
@@ -26,8 +26,6 @@
 namespace v2{
 namespace chain_traits{
 
- // TODO use is_lvalue_iterator or is_read_iterator
-
     template<typename U1,typename U2,typename Tag = use_default>
     struct use_lvalue
     {


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