Corrected some warnings/errors. Mostly missing 'typename' keywords.

[SVN r14574]
This commit is contained in:
Ronald Garcia 2002-07-23 15:42:49 +00:00
parent 501c5219e6
commit 4afc08e45c
5 changed files with 9 additions and 7 deletions

View File

@ -83,7 +83,7 @@ copy_n__(RAIter first, Size count,
template <class InputIter, class Size, class OutputIter>
inline OutputIter
copy_n__(InputIter first, Size count, OutputIter result) {
typedef std::iterator_traits<InputIter>::iterator_category cat;
typedef typename std::iterator_traits<InputIter>::iterator_category cat;
return copy_n__(first, count, result, cat());
}

View File

@ -221,7 +221,7 @@ public:
operator[](const detail::multi_array::
index_gen<NumDims,NDims>& indices)
const {
typedef const_array_view<NDims>::type return_type;
typedef typename const_array_view<NDims>::type return_type;
return
super_type::generate_array_view(boost::type<return_type>(),
indices,
@ -507,7 +507,7 @@ public:
typename array_view<NDims>::type
operator[](const detail::multi_array::
index_gen<NumDims,NDims>& indices) {
typedef array_view<NDims>::type return_type;
typedef typename array_view<NDims>::type return_type;
return
super_type::generate_array_view(boost::type<return_type>(),
indices,

View File

@ -95,7 +95,7 @@ public:
operator[](const boost::detail::multi_array::
index_gen<NumDims,NDims>& indices)
const {
typedef const_array_view<NDims>::type return_type;
typedef typename const_array_view<NDims>::type return_type;
return
super_type::generate_array_view(boost::type<return_type>(),
indices,
@ -273,7 +273,7 @@ public:
typename array_view<NDims>::type
operator[](const boost::detail::multi_array::
index_gen<NumDims,NDims>& indices) {
typedef array_view<NDims>::type return_type;
typedef typename array_view<NDims>::type return_type;
return
super_type::generate_array_view(boost::type<return_type>(),
indices,

View File

@ -132,7 +132,7 @@ public:
operator[](const boost::detail::multi_array::
index_gen<NumDims,NDims>& indices)
const {
typedef const_array_view<NDims>::type return_type;
typedef typename const_array_view<NDims>::type return_type;
return
super_type::generate_array_view(boost::type<return_type>(),
indices,
@ -339,7 +339,7 @@ public:
typename array_view<NDims>::type
operator[](const boost::detail::multi_array::
index_gen<NumDims,NDims>& indices) {
typedef array_view<NDims>::type return_type;
typedef typename array_view<NDims>::type return_type;
return
super_type::generate_array_view(boost::type<return_type>(),
indices,

View File

@ -5,6 +5,7 @@
#define MULTIARRAY_TEST_ASSIGN
#include "generative_tests.hpp"
#include "boost/concept_check.hpp" // for ignore_unused_variable_warning
// iterator-test-specific code
@ -112,6 +113,7 @@ void construct_iterators(Array&) {
#endif
typename Array::const_iterator ci2 = i1;
typename Array::const_reverse_iterator cr2 = cr1;
ignore_unused_variable_warning(cr2);
}
}