Boost logo

Boost :

From: Gary Powell (Gary.Powell_at_[hidden])
Date: 2001-04-05 12:08:16


Thanks Peter!

>>
> Intel C++ 5.0 likes the code, except for a few remarks (controlling
> expression is constant - if(sizeof(X))).
<<
I replaced these with just
  sizeof(element_type);

>>
> MSVC 7 works, but says
>
> "assignment operator could not be generated" - for auto_ptr_ref
<<
I'm confused about what to do for this.

>>
> "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 &')
<<
I think this issue is under discussion by WG21.

>>
> "conditional expression is constant" on sizeof(X)
<<
fixed as above.

>>
> 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
> sizeof(element_type).
<<
Fixed by replacing "X" with the typedef "element_type"

Thanks again!

  -gary-

gary.powell_at_[hidden]


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk