2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-21 15:32:12 +00:00

removed experimental type_traits:const_reference

For consitency the would be needed for all container typedef
It fails with VC6

svn path=/trunk/boost/boost/numeric/ublas/; revision=24588
This commit is contained in:
Michael Stevens
2004-08-19 08:02:47 +00:00
parent 6868576e35
commit d77a8afbc7
10 changed files with 27 additions and 52 deletions

View File

@@ -36,8 +36,7 @@ namespace boost { namespace numeric { namespace ublas {
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;
typedef T value_type;
// typedef const T &const_reference;
typedef typename type_traits<T>::const_reference const_reference;
typedef const T &const_reference;
typedef T &reference;
typedef const T *const_pointer;
typedef T *pointer;

View File

@@ -51,8 +51,6 @@ namespace boost { namespace numeric { namespace ublas {
typedef M matrix_type;
typedef typename M::size_type size_type;
typedef typename M::value_type value_type;
// typedef const value_type &const_reference;
typedef typename type_traits<value_type>::const_reference const_reference;
typedef value_type &reference;
typedef value_type *pointer;

View File

@@ -40,8 +40,7 @@ namespace boost { namespace numeric { namespace ublas {
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;
typedef T value_type;
// typedef const T &const_reference;
typedef typename type_traits<T>::const_reference const_reference;
typedef const T &const_reference;
typedef T &reference;
typedef const T *const_pointer;
typedef T *pointer;
@@ -984,8 +983,7 @@ namespace boost { namespace numeric { namespace ublas {
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;
typedef T value_type;
// typedef const T &const_reference;
typedef typename type_traits<T>::const_reference const_reference;
typedef const T &const_reference;
typedef T &reference;
typedef const T *const_pointer;
typedef T *pointer;
@@ -1945,8 +1943,7 @@ namespace boost { namespace numeric { namespace ublas {
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;
typedef T value_type;
// typedef const T &const_reference;
typedef typename type_traits<T>::const_reference const_reference;
typedef const T &const_reference;
typedef T &reference;
typedef const T *const_pointer;
typedef T *pointer;
@@ -2408,8 +2405,7 @@ namespace boost { namespace numeric { namespace ublas {
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;
typedef T value_type;
// typedef const T &const_reference;
typedef typename type_traits<T>::const_reference const_reference;
typedef const T &const_reference;
typedef T &reference;
typedef const T *const_pointer;
typedef T *pointer;
@@ -2857,8 +2853,7 @@ namespace boost { namespace numeric { namespace ublas {
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;
typedef T value_type;
// typedef const T &const_reference;
typedef typename type_traits<T>::const_reference const_reference;
typedef const T &const_reference;
typedef T &reference;
typedef const T *const_pointer;
typedef T *pointer;
@@ -3297,8 +3292,7 @@ namespace boost { namespace numeric { namespace ublas {
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;
typedef T value_type;
// typedef const T &const_reference;
typedef typename type_traits<T>::const_reference const_reference;
typedef const T &const_reference;
typedef T &reference;
typedef const T *const_pointer;
typedef T *pointer;

View File

@@ -35,8 +35,7 @@ namespace boost { namespace numeric { namespace ublas {
typedef M matrix_type;
typedef typename M::size_type size_type;
typedef typename M::value_type value_type;
// typedef const value_type &const_reference;
typedef typename type_traits<value_type>::const_reference const_reference;
typedef const value_type &const_reference;
typedef value_type &reference;
typedef value_type *pointer;
@@ -250,8 +249,7 @@ namespace boost { namespace numeric { namespace ublas {
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;
typedef T value_type;
// typedef const T &const_reference;
typedef typename type_traits<T>::const_reference const_reference;
typedef const T &const_reference;
#if ! defined (BOOST_UBLAS_STRICT_STORAGE_SPARSE) && ! defined (BOOST_UBLAS_STRICT_MATRIX_SPARSE)
typedef T &reference;
#elif defined (BOOST_UBLAS_STRICT_MATRIX_SPARSE)
@@ -1323,8 +1321,7 @@ namespace boost { namespace numeric { namespace ublas {
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;
typedef T value_type;
// typedef const T &const_reference;
typedef typename type_traits<T>::const_reference const_reference;
typedef const T &const_reference;
#if ! defined (BOOST_UBLAS_STRICT_STORAGE_SPARSE) && ! defined (BOOST_UBLAS_STRICT_MATRIX_SPARSE)
typedef T &reference;
#elif defined (BOOST_UBLAS_STRICT_MATRIX_SPARSE)
@@ -2508,8 +2505,7 @@ namespace boost { namespace numeric { namespace ublas {
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;
typedef T value_type;
// typedef const T &const_reference;
typedef typename type_traits<T>::const_reference const_reference;
typedef const T &const_reference;
#ifndef BOOST_UBLAS_STRICT_MATRIX_SPARSE
typedef T &reference;
#else
@@ -3844,8 +3840,7 @@ namespace boost { namespace numeric { namespace ublas {
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;
typedef T value_type;
// typedef const T &const_reference;
typedef typename type_traits<T>::const_reference const_reference;
typedef const T &const_reference;
#ifndef BOOST_UBLAS_STRICT_MATRIX_SPARSE
typedef T &reference;
#else

View File

@@ -71,8 +71,7 @@ namespace boost { namespace numeric { namespace ublas {
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;
typedef T value_type;
// typedef const T &const_reference;
typedef typename type_traits<T>::const_reference const_reference;
typedef const T &const_reference;
typedef T &reference;
typedef const T *const_pointer;
typedef T *pointer;
@@ -271,8 +270,7 @@ namespace boost { namespace numeric { namespace ublas {
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;
typedef T value_type;
// typedef const T &const_reference;
typedef typename type_traits<T>::const_reference const_reference;
typedef const T &const_reference;
typedef T &reference;
typedef const T *const_pointer;
typedef T *pointer;
@@ -473,8 +471,7 @@ namespace boost { namespace numeric { namespace ublas {
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;
typedef T value_type;
// typedef const T &const_reference;
typedef typename type_traits<T>::const_reference const_reference;
typedef const T &const_reference;
typedef T &reference;
typedef const T *const_pointer;
typedef T *pointer;
@@ -716,8 +713,7 @@ namespace boost { namespace numeric { namespace ublas {
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;
typedef T value_type;
// typedef const T &const_reference;
typedef typename type_traits<T>::const_reference const_reference;
typedef const T &const_reference;
typedef T &reference;
typedef const T *const_pointer;
typedef T *pointer;

View File

@@ -602,10 +602,10 @@ namespace boost { namespace numeric { namespace ublas {
typedef std::ptrdiff_t difference_type;
typedef I index_type;
typedef I value_type;
typedef const value_type &const_reference;
typedef value_type &reference;
typedef const value_type *const_pointer;
typedef value_type *pointer;
typedef const I &const_reference;
typedef I &reference;
typedef const I *const_pointer;
typedef I *pointer;
// Construction and destruction
BOOST_UBLAS_INLINE

View File

@@ -53,8 +53,7 @@ namespace boost { namespace numeric { namespace ublas {
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;
typedef T value_type;
// typedef const T &const_reference;
typedef typename type_traits<T>::const_reference const_reference;
typedef const T &const_reference;
typedef T &reference;
typedef const T *const_pointer;
typedef T *pointer;

View File

@@ -36,8 +36,7 @@ namespace boost { namespace numeric { namespace ublas {
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;
typedef T value_type;
// typedef const T &const_reference;
typedef typename type_traits<T>::const_reference const_reference;
typedef const T &const_reference;
typedef T &reference;
typedef const T *const_pointer;
typedef T *pointer;

View File

@@ -36,8 +36,7 @@ namespace boost { namespace numeric { namespace ublas {
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;
typedef T value_type;
// typedef const T &const_reference;
typedef typename type_traits<T>::const_reference const_reference;
typedef const T &const_reference;
#if ! defined (BOOST_UBLAS_STRICT_STORAGE_SPARSE) && ! defined (BOOST_UBLAS_STRICT_VECTOR_SPARSE)
typedef T &reference;
#elif defined (BOOST_UBLAS_STRICT_VECTOR_SPARSE)

View File

@@ -34,8 +34,7 @@ namespace boost { namespace numeric { namespace ublas {
typedef V vector_type;
typedef typename V::size_type size_type;
typedef typename V::value_type value_type;
// typedef const value_type &const_reference;
typedef typename type_traits<value_type>::const_reference const_reference;
typedef const value_type &const_reference;
typedef value_type &reference;
typedef value_type *pointer;
@@ -246,8 +245,7 @@ namespace boost { namespace numeric { namespace ublas {
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;
typedef T value_type;
// typedef const T &const_reference;
typedef typename type_traits<T>::const_reference const_reference;
typedef const value_type &const_reference;
#if ! defined (BOOST_UBLAS_STRICT_STORAGE_SPARSE) && ! defined (BOOST_UBLAS_STRICT_VECTOR_SPARSE)
typedef T &reference;
#elif defined (BOOST_UBLAS_STRICT_VECTOR_SPARSE)
@@ -732,8 +730,7 @@ namespace boost { namespace numeric { namespace ublas {
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;
typedef T value_type;
// typedef const T &const_reference;
typedef typename type_traits<T>::const_reference const_reference;
typedef const T &const_reference;
#ifndef BOOST_UBLAS_STRICT_VECTOR_SPARSE
typedef T &reference;
#else
@@ -1296,8 +1293,7 @@ namespace boost { namespace numeric { namespace ublas {
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;
typedef T value_type;
// typedef const T &const_reference;
typedef typename type_traits<T>::const_reference const_reference;
typedef const T &const_reference;
#ifndef BOOST_UBLAS_STRICT_VECTOR_SPARSE
typedef T &reference;
#else