Boost logo

Boost Users :

From: Benedikt Weber (yg-boost-users_at_[hidden])
Date: 2003-05-17 07:00:52


Hi Joerg

The tests work fine with

#define BOOST_UBLAS_NO_MEMBER_FRIENDS

I just used:

set TOOLS=cwpro8
bjam "-sBUILD=<define>BOOST_UBLAS_NO_MEMBER_FRIENDS"

I am not sure though how to put this into the jamfile. I noticed that you
put the same jam features into all subprojects. Could the common setting be
factored out? I also don't understand why you have set features (turn off
some warnings) for test1 only but not for test11, test12, test13.

Benedikt

jhr.walter_at_[hidden] wrote:
> Hi Benedikt,
>
> you wrote:
>
>> 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)
>
> The diagnostics reference the following code
>
> ----------
> #ifndef BOOST_UBLAS_NO_MEMBER_FRIENDS
> friend reverse_iterator_base1 operator + (const
> reverse_iterator_base1 &it, difference_type n) {
> reverse_iterator_base1 tmp (it);
> return tmp += n;
> }
> friend reverse_iterator_base1 operator - (const
> reverse_iterator_base1 &it, difference_type n) {
> reverse_iterator_base1 tmp (it);
> return tmp -= n;
> }
> friend difference_type operator - (const
> reverse_iterator_base1 &it1, const reverse_iterator_base1 &it2) {
> return it2.base () - it1.base ();
> }
> #endif
> ----------
>
> It would be great, if you could give
>
> #define BOOST_UBLAS_NO_MEMBER_FRIENDS
>
> a try. I've probably changed the default in the past.
>
> Thanks,
>
> Joerg
>


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