Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58456 - sandbox/numeric_bindings/boost/numeric/bindings
From: rutger_at_[hidden]
Date: 2009-12-18 09:39:35


Author: rutger
Date: 2009-12-18 09:39:34 EST (Fri, 18 Dec 2009)
New Revision: 58456
URL: http://svn.boost.org/trac/boost/changeset/58456

Log:
Updates to column, begin, end

Text files modified:
   sandbox/numeric_bindings/boost/numeric/bindings/begin.hpp | 1 -
   sandbox/numeric_bindings/boost/numeric/bindings/column.hpp | 15 ++++++++-------
   sandbox/numeric_bindings/boost/numeric/bindings/end.hpp | 1 +
   3 files changed, 9 insertions(+), 8 deletions(-)

Modified: sandbox/numeric_bindings/boost/numeric/bindings/begin.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/begin.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/begin.hpp 2009-12-18 09:39:34 EST (Fri, 18 Dec 2009)
@@ -59,7 +59,6 @@
 template< typename T, typename Tag = tag::index<1> >
 struct begin {
     BOOST_STATIC_ASSERT( (is_tag<Tag>::value) );
- BOOST_STATIC_ASSERT( (mpl::not_< is_tag<T> >::value) );
     typedef typename detail::begin_impl<T,Tag>::result_type type;
 };
 

Modified: sandbox/numeric_bindings/boost/numeric/bindings/column.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/column.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/column.hpp 2009-12-18 09:39:34 EST (Fri, 18 Dec 2009)
@@ -40,17 +40,18 @@
     typedef mpl::map<
         mpl::pair< tag::value_type, value_type >,
         mpl::pair< tag::entity, tag::vector >,
- mpl::pair< tag::size_type<1>, typename result_of::size<T,1>::type >,
+ mpl::pair< tag::size_type<1>, typename result_of::size1<T>::type >,
         mpl::pair< tag::data_structure, tag::linear_array >,
- mpl::pair< tag::stride_type<1>, typename result_of::stride<T,1>::type >
+ mpl::pair< tag::stride_type<1>, typename result_of::stride1<T>::type >
> property_map;
 
- static typename result_of::size<T,1>::type size1( const Id& id ) {
- return size<1>( id.get() );
+ static typename result_of::size1<T>::type size1( const Id& id ) {
+ return bindings::size1( id.get() );
     }
 
     static typename result_of::begin_value< T >::type begin_value( Id& id ) {
- return bindings::begin_value( id.get() ) + id.m_index * stride<2>( id.get() );
+ return bindings::begin_value( id.get() ) +
+ id.m_index * bindings::stride2( id.get() );
     }
 
     static typename result_of::end_value< T >::type end_value( Id& id ) {
@@ -58,8 +59,8 @@
         return bindings::end_value( id.get() );
     }
 
- static typename result_of::stride<T,1>::type stride1( const Id& id ) {
- return stride<1>( id.get() );
+ static typename result_of::stride1<T>::type stride1( const Id& id ) {
+ return bindings::stride1( id.get() );
     }
 
 };

Modified: sandbox/numeric_bindings/boost/numeric/bindings/end.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/end.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/end.hpp 2009-12-18 09:39:34 EST (Fri, 18 Dec 2009)
@@ -52,6 +52,7 @@
 
 template< typename T, typename Tag = tag::index<1> >
 struct end {
+ BOOST_STATIC_ASSERT( (is_tag<Tag>::value) );
     typedef typename detail::end_impl<T,Tag>::result_type type;
 };
 


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