Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-04-05 08:29:24

From: "Gary Powell" <Gary.Powell_at_[hidden]>

> Thanks to Jens Maurer, auto_array_ptr now works with Comeau Beta2
> Also a bug that is in MSVC 6.X has been worked around, and gcc 2.95.2
> (It is only fair to point out that the Comeau found many bugs in the code,
> vs 1 possible bug in the compiler, which both MSVC and gcc passed right
> over.)
> Anyone want to try Borland? Metrowerks? Intel?

Intel C++ 5.0 likes the code, except for a few remarks (controlling
expression is constant - if(sizeof(X))).

MSVC 7 works, but says

"assignment operator could not be generated" - for auto_ptr_ref

"nonstandard extension used - non-const reference binds to non-lvalue" in
main.cpp(89) (conversion from conversion from 'boost::auto_ptr<X>' to
'boost::auto_ptr<X>::self &')

"conditional expression is constant" on sizeof(X)

Borland 5.5.1 for some reason doesn't recognize 'X' as a type on lines 112,
103, 154, 229, 267, 251. When I replaced X by 'element_type' it compiled the
code with the usual "Condition always true" warnings on

I have a question, however. Can we get rid of auto_ptr_ref? Please?

Peter Dimov
Multi Media Ltd.

Boost list run by bdawes at, gregod at, cpdaniel at, john at