|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r55816 - in sandbox/statistics/binary_op/boost/binary_op: . data meta
From: erwann.rogard_at_[hidden]
Date: 2009-08-27 20:37:06
Author: e_r
Date: 2009-08-27 20:37:05 EDT (Thu, 27 Aug 2009)
New Revision: 55816
URL: http://svn.boost.org/trac/boost/changeset/55816
Log:
additions/modifs to binary_op
Added:
sandbox/statistics/binary_op/boost/binary_op/meta/
sandbox/statistics/binary_op/boost/binary_op/meta/include.hpp (contents, props changed)
sandbox/statistics/binary_op/boost/binary_op/meta/remove_ref_cv.hpp (contents, props changed)
Text files modified:
sandbox/statistics/binary_op/boost/binary_op/data/tuple_range.hpp | 14 +++++++++-----
sandbox/statistics/binary_op/boost/binary_op/include.hpp | 1 +
2 files changed, 10 insertions(+), 5 deletions(-)
Modified: sandbox/statistics/binary_op/boost/binary_op/data/tuple_range.hpp
==============================================================================
--- sandbox/statistics/binary_op/boost/binary_op/data/tuple_range.hpp (original)
+++ sandbox/statistics/binary_op/boost/binary_op/data/tuple_range.hpp 2009-08-27 20:37:05 EDT (Thu, 27 Aug 2009)
@@ -7,7 +7,7 @@
///////////////////////////////////////////////////////////////////////////////
#ifndef BOOST_BINARY_OP_DATA_TUPLE_RANGE_HPP_ER_2009
#define BOOST_BINARY_OP_DATA_TUPLE_RANGE_HPP_ER_2009
-
+#include <boost/mpl/assert.hpp>
#include <boost/type_traits.hpp>
#include <boost/range.hpp>
#include <boost/call_traits.hpp>
@@ -20,6 +20,7 @@
// Creates a range of tuples from two ranges
template<typename Rx,typename Ry>
struct tuple_range{
+
typedef typename remove_reference<Rx>::type const_rx_;
typedef typename remove_reference<Ry>::type const_ry_;
typedef typename range_iterator<const_rx_>::type it_x_;
@@ -36,6 +37,9 @@
typedef iterator_range<zip_iterator_> type;
+ BOOST_MPL_ASSERT(( is_reference<Rx> ));
+ BOOST_MPL_ASSERT(( is_reference<Ry> ));
+
static type make(
typename call_traits<Rx>::param_type rx,
typename call_traits<Ry>::param_type ry
@@ -43,14 +47,14 @@
return type(
make_zip_iterator(
make_tuple(
- begin(rx),
- begin(ry)
+ boost::begin(rx),
+ boost::begin(ry)
)
),
make_zip_iterator(
make_tuple(
- end(rx),
- end(ry)
+ boost::end(rx),
+ boost::end(ry)
)
)
);
Modified: sandbox/statistics/binary_op/boost/binary_op/include.hpp
==============================================================================
--- sandbox/statistics/binary_op/boost/binary_op/include.hpp (original)
+++ sandbox/statistics/binary_op/boost/binary_op/include.hpp 2009-08-27 20:37:05 EDT (Thu, 27 Aug 2009)
@@ -11,5 +11,6 @@
#include <boost/binary_op/algorithm/include.hpp>
#include <boost/binary_op/data/include.hpp>
#include <boost/binary_op/functional/include.hpp>
+#include <boost/binary_op/meta/include.hpp>
#endif
Added: sandbox/statistics/binary_op/boost/binary_op/meta/include.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/binary_op/boost/binary_op/meta/include.hpp 2009-08-27 20:37:05 EDT (Thu, 27 Aug 2009)
@@ -0,0 +1,20 @@
+///////////////////////////////////////////////////////////////////////////////
+// binary_op::meta::include.hpp //
+// //
+// Copyright 2009 Erwann Rogard. 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) //
+///////////////////////////////////////////////////////////////////////////////
+#ifndef BOOST_BINARY_OP_META_INCLUDE_HPP_ER_2009
+#define BOOST_BINARY_OP_META_INCLUDE_HPP_ER_2009
+
+#include <boost/binary_op/meta/is_tuple.hpp>
+#include <boost/binary_op/meta/tuple_element_is_ref.hpp>
+#include <boost/binary_op/meta/tuple_element_is_const.hpp>
+#include <boost/binary_op/meta/tuple_has_no_ref.hpp>
+#include <boost/binary_op/meta/tuple_has_no_const.hpp>
+#include <boost/binary_op/meta/tuple_remove_cv.hpp>
+#include <boost/binary_op/meta/tuple_remove_ref.hpp>
+#include <boost/binary_op/meta/remove_ref_cv.hpp>
+
+#endif
\ No newline at end of file
Added: sandbox/statistics/binary_op/boost/binary_op/meta/remove_ref_cv.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/binary_op/boost/binary_op/meta/remove_ref_cv.hpp 2009-08-27 20:37:05 EDT (Thu, 27 Aug 2009)
@@ -0,0 +1,25 @@
+///////////////////////////////////////////////////////////////////////////////
+// binary_op::meta::remove_ref_cv.hpp //
+// //
+// Copyright 2009 Erwann Rogard. 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) //
+///////////////////////////////////////////////////////////////////////////////
+#ifndef BOOST_BINARY_OP_META_REMOVE_REF_CV_HPP_ER_2009
+#define BOOST_BINARY_OP_META_REMOVE_REF_CV_HPP_ER_2009
+#include <boost/binary_op/meta/tuple_remove_cv.hpp>
+#include <boost/binary_op/meta/tuple_remove_ref.hpp>
+
+namespace boost{
+namespace binary_op{
+
+ template<typename T>
+ struct tuple_remove_ref_cv : tuple_remove_cv<
+ typename tuple_remove_ref<T>::type
+ >{};
+
+}// binary_op
+}// boost
+
+#endif
+
\ 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