stdcxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Muller <>
Subject auto_ptr behaviour
Date Mon, 29 Jan 2007 18:30:55 GMT
Hi, team!

It seems like auto_ptr takes its constructor argument assuming it a
auto_ptr_ref (argument is a raw pointer in fact). VC71 compiler produces an
error. The workaround found so far (to calm down the compiler) is simply
commenting the troublesome constructor or modifying its argument with a
reference sign.
Would be nice to have a proper solution instead of such hacks.

Sergey Melnikov.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message