Boost logo

Boost Users :

From: Benedikt Weber (yg-boost-users_at_[hidden])
Date: 2003-05-16 05:39:49


Hi Joerg

jhr.walter_at_[hidden] wrote:
> Changed to std::rand() in my local copy (seems like I've been
> programming too much C in the past ;-)

And don't forget atoi() in rand1.cpp, rand2.cpp, rand3.cpp, rand4.cpp

> What about bjam -sBUILD="release" ?

Yes, that works fine. Sorry I just started to use bjam and only used the
default cases. I noticed that other libraries build debug and release by
default. So I expected the same from ublas.

Now I have a more serios problem. Codewarrior (cwpro8) has problems when
decrementing iterators in several places. I just give you 2 examples, others
are similar. (I can mail you all the long error messages if necessary)

Benedikt

### mwcc Compiler:
# In: ..\..\..\boost\numeric\ublas\iterator.hpp
# From: test2\test23.cpp
# -------------------------
# 846: return tmp -= n;
# Error: ^
# illegal implicit conversion from
'std::reverse_iterator<boost::numeric::ublas::matrix_unary2<boost::numeric::
ublas::matrix<float, boost::numeric::ublas::row_major,
boost::numeric::ublas::unbounded_array<float>>,
boost::numeric::ublas::scalar_identity<float>>::const_iterator1>' to
#
'boost::numeric::ublas::reverse_iterator_base1<boost::numeric::ublas::matrix
_unary2<boost::numeric::ublas::matrix<float,
boost::numeric::ublas::row_major,
boost::numeric::ublas::unbounded_array<float>>,
boost::numeric::ublas::scalar_identity<float>>::const_iterator1>'
# (instantiating: 'boost::numeric::ublas::operator -(const
boost::numeric::ublas::reverse_iterator_base1<boost::numeric::ublas::matrix_
unary2<boost::numeric::ublas::matrix<float,
boost::numeric::ublas::row_major,
boost::numeric::ublas::unbounded_array<float>>,
boost::numeric::ublas::scalar_identity<float>>::const_iterator1> &, long)')

### mwcc Compiler:
# In: ..\..\..\boost\numeric\ublas\matrix_expression.hpp
# From: bench2\bench22.cpp
# ---------------------------
# 916: it2_ -= n;
# Error: ^
# illegal operands 'boost::numeric::ublas::sparse_vector<double,
boost::numeric::ublas::map_array<unsigned int, double>>::const_iterator' -=
'long'


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net