
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@t-online.de 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